/* Abbate Lernraum — unified product experience, November 2026.
   Visual layer only: does not alter accounts, eligibility, scoring or data access. */
:root{
  --paper:#f5f5f0;--ink:#19363b;--muted:#657671;--line:#dce5df;
  --gold:#f2c84b;--navy:#12383c;
  --surface:#fffefa;--soft:#eaf0e9;--shadow:0 20px 55px rgba(13,45,41,.07)
}
body{background:var(--paper);color:var(--ink)}
h1,h2,h3{letter-spacing:-.045em}
.site-header{position:sticky;top:0;z-index:50;background:rgba(252,252,247,.95);border-bottom:1px solid #dfe6df;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.header-inner{max-width:1500px;padding:14px clamp(22px,4.2vw,68px);min-height:86px}
.brand>img{width:43px;height:53px;border-radius:11px;background:var(--gold);box-shadow:0 6px 18px #d8b95124}
.brand strong{font-size:35px;font-weight:800;letter-spacing:-.055em}
.brand small{font-size:12px;letter-spacing:.015em;color:#70827a}
.desktop-nav{align-self:auto;gap:5px;background:#ebf0e9;padding:5px;border-radius:14px}
.desktop-nav a{padding:11px 17px;border-radius:10px;font-size:15px;font-weight:700;color:#687f76;transition:background .2s,color .2s}
.desktop-nav a.active{color:#173b3a;background:#fffefa;box-shadow:0 3px 12px #173b3a12}
.desktop-nav a.active:after{display:none}
.desktop-nav a:hover{color:#234d45}
.header-tools{gap:14px}
.language-button{border:1px solid #d9e3d9!important;border-radius:11px!important;padding:10px 12px!important}
.profile-button{border:1px solid #dce5de;border-radius:13px;background:#fffefa;padding:7px 13px 7px 7px;min-height:47px}
.profile-button>span:first-child{background:#203f3f;color:#f4d477;box-shadow:none}
main{max-width:1500px;padding:clamp(27px,3.6vw,51px) clamp(22px,4.2vw,68px) 56px;min-height:calc(100vh - 180px)}
.page-heading{margin-bottom:24px;align-items:center}
.page-heading h1{font-size:clamp(37px,4vw,56px);line-height:1.04;letter-spacing:-.056em;margin-top:10px}
.page-heading p{max-width:700px;color:#687b71;font-size:17px}
.overline{font-weight:700;text-transform:uppercase;letter-spacing:.075em;font-size:12px;color:#698174}
.overline svg{color:#ba9038}
.access-line{font-size:13px;font-weight:700;color:#35735b;background:#e5f0e5;padding:8px 12px;border:1px solid #d4e7d8;border-radius:100px}
.access-line.expired{color:#aa704b;background:#fff0e5;border-color:#f0dbcb}
.primary{border-radius:12px;background:#163c3f;font-size:16px;font-weight:700;padding:13px 23px;min-height:52px;box-shadow:0 7px 18px #0f383a16;transition:transform .22s ease,background .22s ease,box-shadow .22s}
.primary:hover{background:#285a55;transform:translateY(-2px);box-shadow:0 12px 25px #0f383a21}
.primary.gold{background:var(--gold);color:#233934}
.primary.gold:hover{background:#ffda67}
.primary svg{color:var(--gold);width:19px;height:19px}
.secondary{border:1px solid #d4dfd4;background:#fffefa;border-radius:11px;min-height:50px;font-size:15px;font-weight:700;transition:background .2s ease}
.secondary:hover{background:#f0f4eb}
.text-link{color:#2e685d;font-size:15px;font-weight:700}
.home-hero{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(24px,4.5vw,70px);align-items:stretch;overflow:hidden;min-height:455px;background:#17383d;border-radius:27px;padding:0;position:relative;isolation:isolate;box-shadow:0 30px 65px rgba(9,46,41,.16);margin:9px 0 24px}
.home-hero:before{content:"";position:absolute;width:460px;height:460px;top:-320px;left:23%;border:90px solid #ffffff09;border-radius:50%;pointer-events:none}
.hero-text{padding:clamp(32px,4.2vw,66px) 0 clamp(32px,4.2vw,62px) clamp(30px,4.5vw,66px);position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.course-label{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:#d0e0d7}
.course-label>span{background:#f2ca4e;width:9px;height:9px;box-shadow:0 0 0 5px #f2ca4e18}
.hero-text h2{font-size:clamp(45px,4.9vw,73px);line-height:.99;color:#fff;letter-spacing:-.06em;margin:20px 0 21px}
.hero-text .marker:after{background:#f3c647;opacity:.92}
.hero-text>p{color:#d0dcd4;font-size:clamp(17px,1.6vw,21px);line-height:1.52;max-width:475px}
.hero-actions{gap:20px;margin-top:30px}
.hero-actions .primary{background:#f2c84b;color:#203a37}
.hero-actions .primary svg{color:#24443e}
.hero-actions .primary:hover{background:#ffda76}
.hero-actions .text-link{color:#f6e4b5}
.hero-proof{color:#c2d1c7;font-size:13px;margin-top:20px}
.hero-photo{padding:0;height:100%;min-height:455px;position:relative;overflow:hidden}
.hero-photo:before{inset:0;background:linear-gradient(90deg,#17383d 0%,#17383d22 33%,transparent 68%),linear-gradient(0deg,#17383d66,transparent 36%);border:0;border-radius:0;transform:none;z-index:1}
.hero-photo>img{width:100%;height:100%;min-height:455px;object-fit:cover;object-position:51% 47%;border-radius:0;filter:saturate(.95) contrast(1.03)}
.photo-caption{z-index:3;left:auto;right:26px;bottom:25px;max-width:290px;background:#fffdf4f2;border:0;box-shadow:0 15px 40px #082f2d38;border-radius:13px}
.photo-caption strong{font-size:16px}
.learning-route{border:0;gap:12px;margin:13px 0 43px}
.route-step{border-radius:16px;background:#fffefa;border:1px solid #e3e9e1;padding:22px 23px;min-height:116px;transition:transform .2s,box-shadow .2s,background .2s}
.route-step:first-child{padding-left:23px}
.route-step+.route-step:before{display:none}
.route-step:hover{transform:translateY(-3px);box-shadow:var(--shadow);background:#fffefa}
.route-number{width:43px;color:#c3a55e;font-size:28px;font-weight:800}
.route-step strong{font-size:22px;font-weight:700}
.route-step small{font-size:14px;color:#73877c;margin-top:5px}
.route-step>svg{color:#2e675d}
.home-lower{grid-template-columns:minmax(0,1.5fr) minmax(300px,.9fr);gap:25px}
.section-topline h2{font-size:30px}
.topic-list{border-top:0;display:grid;gap:9px}
.course-home-row{padding:15px 18px!important;border:1px solid #e1e8df!important;border-radius:14px;background:#fffefa;transition:background .2s,transform .2s}
.course-home-row:hover{background:#f9fbf5;transform:translateX(2px)}
.course-home-number{color:#c3aa6d}
.course-home-row .topic-title{font-size:21px}
.course-home-row small{font-size:13px;color:#829187}
.course-home-link{background:#24484a;color:var(--gold)}
.progress-note{border:0;border-radius:20px;padding:30px;background:#e8ede5;box-shadow:none;min-height:100%}
.note-label{color:#39705e;font-weight:700;letter-spacing:.045em;font-size:13px;text-transform:uppercase}
.progress-note h3{font-size:clamp(29px,2.6vw,38px)}
.progress-note p{font-size:16px;color:#698073}
.progress-meter{background:#d5e0d1}
.progress-meter>span{background:#d3a731}
.progress-count{font-size:13px}
.qualification-grid{gap:16px}
.qualification-card{border:1px solid #e0e8df;border-radius:22px;min-height:285px;padding:30px;background:#fffefa!important;box-shadow:0 8px 28px #153b3306}
.qualification-card.qualification-upcoming:nth-child(3),.qualification-card.qualification-upcoming:nth-child(4),.qualification-card.qualification-upcoming:nth-child(5){background:#fffefa!important}
.qualification-card h2{font-size:clamp(30px,2.6vw,39px)}
.qualification-card p{color:#6d7f72;font-size:16px;line-height:1.48}
.qualification-card.qualification-available{background:linear-gradient(122deg,#173d40,#285956)!important;border:0;min-height:340px;color:#fff}
.qualification-available:before{width:340px;height:340px;right:-64px;top:28px;border-color:#f5cf621a}
.qualification-card.qualification-available h2{font-size:clamp(43px,4.7vw,68px);color:#fff}
.qualification-card.qualification-available p{font-size:18px;color:#cfdfd7}
.qualification-badge.live{background:#f3cd5c}
.qualification-symbol{background:#ebf0e8;color:#417461}
.qualification-available .qualification-symbol{background:#ffffff17;color:#f4cc59}
.qualification-footer .text-link{font-size:14px}
.learning-tip{border-radius:20px;background:#e7eee7;min-height:240px}
.learning-tip img{height:100%;min-height:245px;filter:saturate(.9)}
.learning-tip p{color:#697e71;font-size:16px}
.mode-grid{gap:17px}
.mode-card{border-radius:23px;background:#fffefa;padding:clamp(24px,3vw,40px);border:1px solid #e0e8df;min-height:435px}
.mode-card.focus{background:#193f42;border-color:#193f42;box-shadow:0 22px 50px #10373718}
.mode-card h2{font-size:clamp(31px,3vw,43px)}
.mode-card p{font-size:17px;color:#708079}
.mode-card.focus p{color:#c4d5cb}
.mode-features>span{font-size:15px}
.mode-icon{background:#edf1e7;color:#3a7360}
.quiz-shell{max-width:950px}
.quiz-top{margin-top:5px}
.quiz-mode{font-weight:700;color:#477568;font-size:14px}
.quiz-progress{margin-bottom:24px;gap:4px}
.quiz-progress>span{height:6px;background:#e0e6dc}
.quiz-progress>span.done{background:#76a58e}
.quiz-progress>span.current{background:#e4bb4f}
.question-card{border:1px solid #dce6dc;background:#fffefa;border-radius:23px;padding:clamp(24px,4vw,47px);box-shadow:0 22px 58px #113c3110}
.question-meta{font-size:13px;color:#6f8376;font-weight:700;letter-spacing:.04em}
.question-card h1{font-size:clamp(30px,3.5vw,45px);max-width:800px;line-height:1.14}
.question-context{font-size:17px;color:#66796f;margin-bottom:26px}
.answers{gap:10px}
.answer{border-radius:13px;min-height:70px;background:#fffefa;border:1px solid #dfe6db;font-size:17px;transition:background .2s,border-color .2s,transform .2s}
.answer:not(:disabled):hover{background:#f6f8f0;border-color:#9db5a0;transform:translateX(2px)}
.answer.selected{background:#eef4e9;border-color:#547f6e}
.quiz-bottom{gap:12px}
.compact-result-summary,.compact-result-review,.result-history-item{box-shadow:var(--shadow)}
.result-history-item{border-radius:19px}
.result-history-percentage{background:#e4efe6;color:#1e6550}
.result-error{background:#fafcf7;border-color:#e2e8dd}
.page-footer{max-width:1500px;padding:30px clamp(22px,4.2vw,68px);border-color:#dfe6df;color:#78887c}
@media(max-width:1120px){
 .desktop-nav{gap:0}.desktop-nav a{padding:10px 11px;font-size:14px}
 .brand small{display:none}
 .home-hero{gap:5px}
 .hero-text{padding-left:35px}
 .home-lower{gap:18px}
}
@media(max-width:780px){
 .site-header{position:sticky;top:0}
 .header-inner{min-height:70px;padding:10px 20px}
 main{padding:25px 18px 110px}
 .home-hero{grid-template-columns:1fr;gap:0;border-radius:21px;margin-top:4px}
 .hero-text{padding:33px 27px 27px}
 .hero-text h2{font-size:clamp(44px,9vw,62px);margin:18px 0}
 .hero-photo{height:245px;min-height:0}
 .hero-photo:before{background:linear-gradient(180deg,#17383d 0%,transparent 42%)}
 .hero-photo>img{height:100%;min-height:0;object-position:center 47%}
 .photo-caption{right:18px;bottom:16px;padding:12px;max-width:225px}
 .photo-caption strong{font-size:13px}.photo-caption small{font-size:11px}
 .learning-route{grid-template-columns:1fr;gap:9px}
 .route-step{min-height:78px;padding:16px 18px}
 .route-step:first-child{padding-left:18px}
 .route-number{font-size:25px}
 .home-lower{grid-template-columns:1fr}
 .progress-note{min-height:0}
 .mode-grid{grid-template-columns:1fr}
 .mode-card{min-height:0}
 .qualification-grid{grid-template-columns:1fr}
 .qualification-available{grid-column:auto;padding-right:24px}
 .learning-tip{grid-template-columns:1fr}
 .learning-tip img{height:210px;min-height:0}
 .page-heading{align-items:flex-start;flex-direction:column}
 .access-line{white-space:normal}
 .mobile-nav{background:#fffefaee;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid #e1e8df}
 .mobile-nav a.active{color:#1e6653}
}
@media(max-width:480px){
 .brand>img{height:44px;width:36px}
 .brand strong{font-size:27px}
 .header-tools{gap:8px}
 .profile-button{padding:4px 6px}
 .hero-text{padding:30px 23px 23px}
 .hero-text h2{font-size:clamp(41px,10.8vw,52px)}
 .hero-text>p{font-size:16px}
 .hero-actions{display:grid;width:100%;gap:16px}
 .hero-actions .primary{width:100%}
 .hero-photo{height:205px}
 .photo-caption{bottom:13px}
 .route-step strong{font-size:20px}
 .qualification-card{padding:24px;min-height:0}
 .question-card{padding:21px 16px}
 .answer{font-size:16px;min-height:64px}
 .quiz-progress{gap:2px}
}
@media(prefers-reduced-motion:reduce){.route-step,.course-home-row,.answer{transition:none!important;transform:none!important}}


/* Adaptive learning explanation — consistent with Abbate's quiet editorial UI. */
.adaptive-learning-note{display:flex;align-items:center;gap:12px;max-width:940px;margin:0 0 23px;padding:16px 19px;background:#e7efe5;border:1px solid #d4e5d6;border-radius:14px;color:#3b6855;font-size:15px;line-height:1.48}
.adaptive-learning-note:before{content:"✦";display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:10px;background:#d5e5d6;color:#275e4d;font-size:19px}
@media(max-width:650px){.adaptive-learning-note{font-size:14px;padding:14px 15px;align-items:flex-start}}

/* Safety-critical question content remains German until approved translations are supplied. */
.question-language-notice{background:#fff3d5;border:1px solid #e7cc85;border-radius:12px;color:#5a4519;font-size:15px;line-height:1.5;padding:13px 16px;margin:12px 0 19px}

/* Accessible app design credit underneath the learner identity. */
.page-footer .footer-signature{display:flex;flex-direction:column;gap:5px}
.page-footer .footer-signature small{font-size:13px;line-height:1.5;color:#647b70}
.page-footer .footer-signature a{font-weight:650;color:#225e51;text-underline-offset:3px}
.page-footer .footer-signature a:hover{text-decoration:underline}

/* Certification statement supplied by the school. Wrap naturally on small screens. */
.hero-certification{display:flex;align-items:center;gap:9px;max-width:100%;margin-top:12px;padding:9px 12px;border:1px solid #f3c64755;border-radius:9px;background:#f3c6470d;color:#f7dda0;font-size:14px;font-weight:600;line-height:1.4}
.hero-certification svg{width:18px;height:18px;flex-shrink:0;color:#f3c647}
.hero-certification span{min-width:0;overflow-wrap:anywhere}

/* Optional photorealistic training scene — original proportions, no additional quiz state. */
.question-illustration{width:min(100%,680px);margin:0 auto 22px;overflow:hidden;border:1px solid #d0dbd0;border-radius:16px;background:#eff2eb}
.question-illustration button{display:block;position:relative;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;color:#244e4b;text-align:start;overflow:hidden}
.question-illustration img,.question-illustration-large img{display:block;width:100%;height:auto;object-fit:contain}
.question-illustration-enlarge{display:flex;align-items:center;gap:6px;position:absolute;right:10px;bottom:10px;min-height:36px;padding:6px 10px;font-size:13px;font-weight:700;background:#fffefa;border:1px solid #c4d2c6;border-radius:9px;box-shadow:0 2px 8px #153b3320}
.question-illustration-enlarge svg{width:18px;height:18px;flex:none}
.question-illustration button:focus-visible{outline:3px solid #c79d37;outline-offset:-4px}
.question-illustration[hidden],.question-illustration-large[hidden]{display:none}
.question-illustration-large{margin:0;width:100%;overflow:hidden;border-radius:12px;background:#eef2eb}
#modal:has(.question-illustration-large){width:min(960px,calc(100% - 24px));max-width:960px;max-height:94dvh}
#modal:has(.question-illustration-large) .modal-body{padding:16px 20px 22px}
@media(max-width:700px){.question-illustration{margin-bottom:16px;border-radius:12px}.question-illustration-enlarge{bottom:6px;right:6px;min-height:30px;padding:4px 7px;font-size:12px}.question-illustration-enlarge svg{width:16px;height:16px}#modal:has(.question-illustration-large) .modal-body{padding:12px 12px 16px}}

.question-illustration{width:100%;border-radius:13px;background:#182d32;box-shadow:0 8px 22px #153b3314}
.question-illustration-enlarge{border:1px solid #ffffff40;background:#102a30e8;color:#fff;box-shadow:0 2px 12px #0004;backdrop-filter:blur(6px)}
.question-illustration-large{background:#122a30;display:grid;place-items:center}
.question-illustration-large img{max-height:72vh;max-height:72dvh;max-width:100%;width:auto;height:auto;margin:auto}
.question-illustration-large[hidden]{display:none}

.exam-locked .desktop-nav,.exam-locked #mobile-nav,.exam-locked .header-tools,.exam-locked .page-footer{display:none!important}.exam-locked .brand{pointer-events:none}.exam-locked .quiz-shell{margin-bottom:30px}

/* A recognizable, direct route to the learner's personal history. */
.desktop-nav .nav-progress{gap:7px;color:#254d45;background:#dce8da}
.desktop-nav .nav-progress svg{width:18px;height:18px;flex:none}
.desktop-nav .nav-progress.active{background:#254d45;color:#fff;box-shadow:none}
.header-progress{display:none}
.learning-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 27px}
.learning-overview>div{min-width:0;background:#fffefa;border:1px solid #dce5de;border-radius:15px;padding:16px 20px;display:flex;flex-direction:column;gap:4px}
.learning-overview small{font-size:13px;color:#536960;font-weight:700}
.learning-overview strong{font-family:var(--heading);font-size:clamp(21px,3.2vw,32px);color:#23463e;line-height:1.2}
@media(max-width:900px){.desktop-nav .nav-progress{gap:4px}.desktop-nav .nav-progress svg{display:none}}
@media(max-width:650px){.header-inner{flex-wrap:wrap;row-gap:9px}.header-progress{flex:0 0 100%;display:flex;align-items:center;gap:9px;background:#eaf0e7;border:1px solid #dce6d9;color:#254d45;border-radius:10px;padding:9px 12px;font-size:14px;font-weight:700;line-height:22px;text-decoration:none}.header-progress svg{height:18px;width:18px;flex:none}.header-progress svg:last-child{margin-left:auto}.header-progress.active{background:#254d45;color:#fff}.learning-overview{gap:7px}.learning-overview>div{padding:11px 9px}.learning-overview small{font-size:12px}}
.header-progress:focus-visible{outline:3px solid #b88721;outline-offset:2px}
.exam-locked .header-progress{display:none!important}

/* Actual distinct learning-question progress, per qualification and overall. */
.course-progress-overview{margin:0 0 30px;padding:24px;background:#fffefa;border:1px solid #dce5de;border-radius:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 24px}
.course-progress-intro{grid-column:1/-1;margin-bottom:3px}
.course-progress-intro h2{font:700 clamp(23px,3vw,30px)/1.2 var(--heading);color:#1f413c;margin:0 0 7px}
.course-progress-intro p{font-size:14px;color:#63736a;margin:0}
.course-progress-row{min-width:0;padding:9px 0}
.course-progress-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;margin-bottom:8px}
.course-progress-top strong{font-size:15px;color:#213e39}
.course-progress-top span{color:#53675c;white-space:nowrap}
.course-learning-progress{margin:18px 0 10px}
.course-learning-progress>span{display:block;font-size:14px;font-weight:700;color:#356456;margin-bottom:8px}
.course-learning-progress-track{width:100%;height:8px;border-radius:20px;overflow:hidden;background:#e1e9df}
.course-learning-progress-track>span{display:block;height:100%;background:linear-gradient(90deg,#507b67,#b3a04a);border-radius:20px;transition:width .3s ease}
@media(max-width:700px){.course-progress-overview{grid-template-columns:1fr;padding:18px;gap:9px}.course-progress-top{flex-wrap:wrap}.course-learning-progress{margin-top:12px}}

/* The exam entry is intentionally separate from the adaptive learning cards. */
.exam-start-layout{max-width:960px;width:100%}
.exam-start-layout .mode-card{min-height:0}
.exam-start-layout .mode-card p{max-width:640px;flex:0 0 auto}
.exam-start-layout .mode-card:hover{transform:none}
@media(max-width:650px){.exam-start-layout .mode-card .primary{width:100%;justify-content:center}}
