/* ───────── Akademi 2.0 (Kaan 01.11.2026: „sehr modern und zeitgemäß“) – loads after app.css ───────── */
:root { --radius: 18px; --surface: #fff; --surface-2: #f7f6f4; --paper: #f3f2ef; --line: #e6e3de; --ink-2: #57534e; --shadow: 0 1px 2px rgba(20,10,10,.04), 0 8px 24px rgba(20,10,10,.06); --shadow-hover: 0 2px 4px rgba(20,10,10,.06), 0 14px 34px rgba(20,10,10,.10); }
body { background: var(--paper); }
.top { background: rgba(158,13,34,.96); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 rgba(0,0,0,.08); padding: 10px max(16px, calc((100vw - 1180px) / 2)); }
.nav a { font-weight: 600; position: relative; }
.nav .badge { font-style: normal; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 99px; background: #fff; color: var(--red); font-size: .72rem; font-weight: 800; vertical-align: 1px; }
.wrap { padding-top: 22px; }
.card, .stat, .course, .lessons, .tbl, .news-card, .cmt, .empty { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card { border-radius: var(--radius); }
.stat { border-radius: var(--radius); padding: 16px 18px; }
.stat b { font-size: 1.9rem; letter-spacing: -.02em; }
.course, .news-card { border-radius: var(--radius); transition: transform .18s ease, box-shadow .18s ease; }
.course:hover, .news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.course .cover { height: 140px; }
.course .cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.25), transparent 60%); pointer-events: none; }
.resume { background: linear-gradient(135deg, #1b1b1b, #3a0710); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; transition: transform .18s; }
.resume:hover { transform: translateY(-2px); }
.btn { box-shadow: 0 6px 16px rgba(158,13,34,.22); transition: transform .12s, background .12s; }
.btn:active { transform: scale(.98); }
.btn.sm { padding: 8px 14px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn.ghost:hover { background: rgba(158,13,34,.06); }
input, select, textarea { border-color: var(--line); background: var(--surface); border-radius: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(158,13,34,.12); }
.page-head { margin-bottom: 14px; }
.page-head h1 { margin-bottom: .2em; }
.page-head p { margin: 0; }
.empty { border-radius: var(--radius); padding: 28px 18px; display: grid; gap: 4px; text-align: center; justify-items: center; }
.empty span { color: var(--ink-2); font-size: .92rem; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.bchip { display: inline-block; justify-self: start; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; }

/* Yenilikler */
.news-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 960px) { .news-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.news-card { overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.news-img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; position: relative; }
.news-img .new { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--red); font-weight: 800; font-size: .75rem; padding: 4px 10px; border-radius: 99px; box-shadow: var(--shadow); }
.news-img .tag { position: absolute; top: 12px; right: 12px; }
.news-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.news-body h3 { margin: 2px 0 0; font-size: 1.12rem; }
.news-body p { margin: 0; }
.news-detail { max-width: 720px; }
.news-media { width: 100%; border-radius: var(--radius); background: #000; display: block; margin: 8px 0 14px; max-height: 70vh; object-fit: contain; box-shadow: var(--shadow); }
.news-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.news-detail p { font-size: 1.04rem; }
.read-ok { color: var(--ok); font-weight: 700; }

/* Soru ve yorumlar */
.comments { margin-top: 26px; max-width: 720px; }
.cmt { border-radius: 16px; padding: 14px 16px; margin: 10px 0; }
.cmt header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: .9rem; }
.cmt header time { margin-left: auto; color: var(--ink-2); font-size: .8rem; }
.cmt > p { margin: 6px 0 0; white-space: pre-wrap; }
.cmt .answer { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fdf1f3; border-left: 3px solid var(--red); }
.cmt .answer p { margin: 4px 0 0; white-space: pre-wrap; }
.cmt-form, .answer-form { display: grid; gap: 8px; margin-top: 10px; }
.cmt-form label { margin: 0; }
.cmt-form .btn, .answer-form .btn { justify-self: start; }

/* Yönetim – Yenilik formu */
.form-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px 14px; }
@media (min-width: 760px) { .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .form-grid .wide { grid-column: 1 / -1; } }
.form-grid .btn { justify-self: start; }
.media-row { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; }
@media (min-width: 760px) { .media-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.media-row form { display: grid; gap: 6px; border: 1px dashed var(--line); border-radius: 14px; padding: 12px; }

/* Handy: Navigation unten wie eine App */
@media (max-width: 720px) {
  .top { justify-content: center; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .nav a, .nav .linkbtn { color: var(--ink-2); font-size: .72rem; font-weight: 700; text-align: center; border-radius: 12px; padding: 4px 2px; display: grid; justify-items: center; gap: 2px; text-decoration: none; width: 100%; }
  .nav a::before, .nav .linkbtn::before { font-size: 1.25rem; line-height: 1; }
  .nav a[href="/"]::before { content: "🎓"; }
  .nav a[href="/yenilikler"]::before { content: "✨"; }
  .nav a[href="/kaydedilenler"]::before { content: "★"; }
  .nav a[href="/yonetim"]::before { content: "⚙"; }
  .nav .linkbtn::before { content: "↩"; }
  .nav a.on { background: rgba(158,13,34,.08); color: var(--red); }
  .nav .badge { position: absolute; top: 0; right: 18%; margin: 0; background: var(--red); color: #fff; }
  .nav form { display: grid; }
  body { padding-bottom: 76px; }
}

/* Dunkel, wenn das Gerät dunkel eingestellt ist */
@media (prefers-color-scheme: dark) {
  :root { --surface: #1c1b1a; --surface-2: #262423; --paper: #121110; --line: #33302d; --ink-2: #b7b1aa; --black: #f3f1ee; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark; }
  body { color: var(--black); }
  a { color: #f07a8a; }
  .lessons a:hover, .opt:hover { background: var(--surface-2); }
  .step, .chip, .subnav a, .list li a, .media, input, select, textarea, .tbl th { background: var(--surface); color: var(--black); border-color: var(--line); }
  .tbl, .lessons { background: var(--surface); }
  .step .n { background: var(--surface-2); }
  .recipe li.now, .cmt .answer { background: #3a1a20; }
  .warn { background: #3a2f12; border-color: #5a4a1c; }
  .hyg { background: #14283a; border-color: #23415a; }
  .opt.c { background: #173024; }
  .opt.x { background: #3a1a20; }
  .chip.on, .subnav a.on { background: #f3f1ee; color: #121110; }
  .bar { background: #33302d; }
  .placeholder { background: repeating-linear-gradient(135deg, #1c1b1a 0 12px, #232120 12px 24px); }
  .resume { background: linear-gradient(135deg, #262423, #3a0710); }
  .nav a.on { color: #f07a8a; }
  .cert-body, .cert { color: #000; }
}
@media (prefers-color-scheme: dark) and (max-width: 720px) { .nav { background: rgba(28,27,26,.96); } }

/* ───── Startseite neu (Kaan 02.11.2026: „hochmodern und professionell“) ───── */
.top { background: rgba(20,18,18,.92); }
.top .brand span { border-color: rgba(255,255,255,.25); font-weight: 600; letter-spacing: .02em; }
.nav a.on { background: var(--red); }
.nav a:hover { background: rgba(255,255,255,.10); }
.has-hero { padding-top: 0; }
.hx { position: relative; margin: 0 -16px 28px; padding: 34px 20px 26px; color: #fff; overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, rgba(158,13,34,.75), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(158,13,34,.35), transparent 70%), #141212; }
@media (min-width: 1012px) { .hx { margin: 0 0 30px; border-radius: 0 0 28px 28px; padding: 40px 36px 30px; } }
.hx::after { content: ""; position: absolute; inset: 0; background-image: url("/img/icon.svg"); background-repeat: no-repeat; background-size: 340px; background-position: right -60px bottom -90px; opacity: .06; pointer-events: none; }
.hx-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; position: relative; z-index: 1; }
.hx-eyebrow { margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hx h1 { margin: 0; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); letter-spacing: -.03em; }
.hx-sub { margin: 8px 0 16px; color: rgba(255,255,255,.75); max-width: 46ch; }
.hx-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-stats span { padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.8); }
.hx-stats b { color: #fff; font-size: 1rem; margin-right: 3px; }
.ring { --p: 0; flex: 0 0 auto; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.14) 0); }
.ring > div { width: 96px; height: 96px; border-radius: 50%; background: #1d1919; display: grid; place-items: center; align-content: center; gap: 0; }
.ring b { font-size: 1.6rem; line-height: 1; letter-spacing: -.02em; }
.ring span { font-size: .7rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 560px) { .ring { width: 92px; height: 92px; } .ring > div { width: 74px; height: 74px; } .ring b { font-size: 1.25rem; } }
.hx-resume { position: relative; z-index: 1; margin-top: 22px; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 18px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); transition: background .15s, transform .15s; }
.hx-resume:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.hx-resume img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,.08); padding: 6px; }
.hx-resume span { display: grid; min-width: 0; }
.hx-resume small { color: rgba(255,255,255,.6); font-size: .78rem; }
.hx-resume b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-resume em { margin-left: auto; font-style: normal; font-weight: 800; background: #fff; color: #141212; padding: 9px 16px; border-radius: 99px; white-space: nowrap; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.sec-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.sec-link { font-weight: 700; text-decoration: none; }
.cgrid { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
@media (min-width: 620px) { .cgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 980px) { .cgrid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.cc { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
a.cc:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cv { --b: #9e0d22; --i: #fff; position: relative; height: 168px; display: grid; place-items: center; color: var(--i);
  background: radial-gradient(120% 100% at 85% 0%, rgba(255,255,255,.35), transparent 55%), linear-gradient(160deg, var(--b), color-mix(in srgb, var(--b) 70%, #000)); }
.cv img { max-height: 92px; max-width: 64%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); transition: transform .3s ease; }
a.cc:hover .cv img { transform: scale(1.05); }
.cv-n { position: absolute; left: 12px; bottom: 12px; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.35); color: #fff; backdrop-filter: blur(6px); }
.cv .tag { position: absolute; top: 12px; right: 12px; margin: 0; }
.cv-lock { position: absolute; inset: auto 12px 12px auto; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: #fff; color: #141212; }
.cb { padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; }
.cb h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; }
.cb p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.cb-foot { margin-top: auto; padding-top: 10px; display: grid; gap: 6px; }
.cb-foot small { color: var(--ink-2); font-weight: 600; }
.mbar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.mbar span { display: block; height: 100%; border-radius: 99px; background: var(--red); }
.cc.locked { cursor: not-allowed; }
.cc.locked .cv { filter: grayscale(1) brightness(.85); }
.cc.locked .cb { opacity: .55; }
@media (prefers-color-scheme: dark) { .ring > div { background: #1d1919; } }

/* logos on dark brand colours (JS) in white so they stay readable */
.cv[style*="--i:#fff"] img { filter: brightness(0) invert(1) drop-shadow(0 10px 18px rgba(0,0,0,.25)); }
