/* CEIS-IT Trainingsportal – Light Theme (Pro)
   Version: 1.0.1
*/

:root{
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, .10);
  --shadow: 0 18px 45px rgba(2, 6, 23, .08);
  --radius: 18px;

  --accent: #16a34a;   /* CEIS-IT Grün (anpassbar) */
  --accent2:#2563eb;   /* Blau */
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*{box-sizing:border-box}
html{color-scheme: light}
body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(22,163,74,.10), transparent 60%),
    radial-gradient(900px 520px at 85% 0%, rgba(37,99,235,.10), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.6;
}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}

.container{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.skip{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:12px; width:auto; height:auto;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(255,255,255,.92);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  z-index:9999;
}

/* Topbar */
.topbar{
  position:sticky; top:0;
  background: rgba(255,255,255,.82);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index:10;
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:14px;
}

.brand{display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.brand__logo{
  display:flex; align-items:center; gap:10px;
  padding:8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.95);
}
.brand__img{width: 34px; height: 34px; object-fit: contain; display:block}
.brand__name{font-weight:950; letter-spacing:.2px}
.brand__sep{opacity:.5}
.brand__sub{font-weight:850; opacity:.95}

.nav{display:flex; gap:14px; flex-wrap:wrap}
.nav a{
  font-weight:750;
  color: rgba(15,23,42,.85);
  padding:8px 10px;
  border-radius: 12px;
}
.nav a:hover{
  text-decoration:none;
  background: rgba(2,6,23,.04);
}

/* Hero */
.hero{padding:34px 0 18px}
.h-title{
  font-size: clamp(30px, 4vw, 46px);
  line-height:1.08;
  margin:0 0 10px;
  letter-spacing: -.02em;
}
.h-sub{
  color:var(--muted);
  margin:0 0 18px;
  max-width: 75ch;
  font-size: 1.05rem;
}
.badges{display:flex; gap:10px; flex-wrap:wrap}
.badge{
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background: rgba(255,255,255,.78);
  color: var(--muted);
  font-size:14px;
}

/* Cards + grid */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
  margin: 16px 0 30px;
}
.card{
  grid-column: span 12;
  border:1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
@media (min-width: 860px){
  .card--4{grid-column: span 4;}
  .card--6{grid-column: span 6;}
}

.card__title{font-weight:950; font-size:18px; margin:0 0 6px}
.card__text{color:var(--muted); margin:0 0 12px}
.card__actions{display:flex; gap:10px; flex-wrap:wrap}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  font-weight:900;
  min-height: 44px;
  transition: transform .06s ease, background .15s ease;
}
.btn:hover{text-decoration:none; background: rgba(255,255,255,1)}
.btn:active{transform: translateY(1px)}

.btn--primary{
  background: linear-gradient(135deg, rgba(22,163,74,1), rgba(22,163,74,.78));
  border-color: rgba(22,163,74,.50);
  color:#05200f;
}
.btn--primary:hover{
  background: linear-gradient(135deg, rgba(22,163,74,1), rgba(22,163,74,.86));
}
.btn--ghost{background: transparent}

/* Quiz */
.kpi{display:flex; gap:14px; flex-wrap:wrap; color:var(--muted); font-size:14px}
.kpi b{color:var(--text)}
.progress{
  height:10px; border-radius:999px;
  border:1px solid var(--border);
  background: rgba(2,6,23,.05);
  overflow:hidden;
  margin: 12px 0 14px;
}
.progress > div{
  height:100%;
  background: linear-gradient(90deg, rgba(37,99,235,1), rgba(22,163,74,1));
  width:0%;
}
.q-title{font-size:22px; font-weight:950; margin:0 0 10px}
.choice{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px;
  border:1px solid var(--border);
  border-radius: 14px;
  background: rgba(2,6,23,.02);
  margin:10px 0;
}
.choice input{margin-top:4px}
.small{color:var(--muted); font-size:14px}

/* Notices */
.notice{
  border-left: 3px solid var(--accent2);
  padding:10px 12px;
  background: rgba(37,99,235,.08);
  border-radius: 12px;
  margin: 12px 0;
}
.good{border-left-color: var(--accent); background: rgba(22,163,74,.10);}
.bad{border-left-color: #e11d48; background: rgba(225,29,72,.08);}

/* Footer */
.footer{
  border-top:1px solid var(--border);
  background: rgba(255,255,255,.75);
  padding: 22px 0;
}
.footer__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  padding: 6px 0 12px;
}
/* gewünscht: Blöcke nebeneinander (auf Tablets+Desktop) */
@media (min-width: 640px){
  .footer__grid{grid-template-columns: repeat(3, 1fr);}
}
.footer__title{font-weight:950; margin-bottom:6px}
.footer__text{color:var(--muted)}
.footer__bottom{color:var(--muted); font-size:14px; padding-top:10px}

/* Mobile Navigation (Hamburger) */
.menu-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  font-weight: 900;
  min-height: 44px;
}
.menu-btn:hover{background: rgba(255,255,255,1); text-decoration:none}
.menu-btn svg{width:20px;height:20px;display:block}

@media (max-width: 860px){
  .nav{display:none}
  .menu-btn{display:inline-flex}
}
@media (min-width: 861px){
  .menu-btn{display:none}
}

/* Drawer */
.drawer{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 100;
}
.drawer[aria-hidden="false"]{display:block}
.drawer__backdrop{
  position:absolute; inset:0;
  background: rgba(2,6,23,.45);
}
.drawer__panel{
  position:absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(92vw, 360px);
  background: rgba(255,255,255,.96);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.drawer__head{
  display:flex; align-items:center; justify-content:space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.drawer__title{font-weight:950}
.drawer__close{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.92);
}
.drawer__close svg{width:20px;height:20px;display:block}
.drawer__nav{
  display:flex; flex-direction:column;
  gap: 6px;
  padding-top: 6px;
}
.drawer__link{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.90);
  font-weight: 900;
  color: rgba(15,23,42,.92);
}
.drawer__link:hover{text-decoration:none; background: rgba(255,255,255,1)}
.drawer__link svg{width:20px;height:20px;display:block;opacity:.9}

.icon-inline{
  width:18px;height:18px;
  vertical-align: -3px;
  margin-right: 8px;
}

/* Nav icon sizing fix */
.nav a{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.nav a svg{
  width:20px;
  height:20px;
  display:block;
  flex: 0 0 auto;
}

/* Typography scale (slightly smaller) */
body{ font-size: 15px; }
.h-sub{ font-size: 1rem; }
.card__title{ font-size: 17px; }
.nav a{ font-size: 14px; }
.badge{ font-size: 13px; }
.small{ font-size: 13px; }
