/* akademie-wissen: inline */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --green: #006b3e; --green-dark: #006b3e; --green-bg: #ecf7f1; --text: #1a1a2e; --muted: #374151; --bg: #fff; --bg-alt: #f5f7fa; --bg-top: #f1f3f5; --border: #e5e7eb; --radius: 10px; --shadow: 0 1px 3px rgba(0,0,0,.06); --shadow-md: 0 4px 14px rgba(0,0,0,.08); --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif; --max: 1120px; }
body { font-family: var(--font); color: var(--text); background: var(--bg-alt); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.topbar { background: linear-gradient(to right, #00c06a, #005430); border-bottom: 1px solid rgba(0,0,0,.18); font-size:14px; color: rgba(255,255,255,.92); }
.topbar-inner { max-width: var(--max); margin: auto; padding: .45rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-left { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.topbar-left span { display: flex; align-items: center; gap: .3rem; }
.topbar-right a { color: rgba(255,255,255,.92); transition: color .2s; }
.topbar-right a:hover { color: #fff; }
.mainnav { background: var(--bg); border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: var(--max); margin: auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 2rem; height: 62px; }
.nav-logo { font-size: 1.25rem; font-weight: 800; color: var(--green); letter-spacing: -.5px; white-space: nowrap; }
.nav-links { display: flex; gap: .25rem; align-items: center; list-style: none; margin-left: .5rem; }
.nav-links a { padding: .45rem .85rem; border-radius: 6px; font-size: .88rem; font-weight: 500; color: var(--text); transition: background .15s, color .15s; white-space: nowrap; }
.nav-links a:hover { background: var(--bg-alt); color: var(--green); }
.nav-cta { margin-left: auto; flex-shrink: 0; display: flex; gap: .5rem; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.2rem; border-radius: 7px; font-size: .88rem; font-weight: 600; cursor: pointer; border: none; transition: all .18s; text-decoration: none; }
.btn-primary { background: linear-gradient(to right, #00c06a, #005430); color: #fff; }
.btn-primary:hover { background: linear-gradient(to right, #009a58, #003d24); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,135,78,.25); }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; background: none; border: none; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }
@media(max-width:640px) { .nav-links { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: #fff; border-bottom: 2px solid var(--border); padding: 1rem 1.5rem; gap: .25rem; } .nav-links.open { display: flex; } .burger { display: flex; } }
    .btn-sm { padding: .45rem 1rem; font-size:14px; }
    .btn-secondary { background:#fff; color:#000; border:2px solid #000; padding-top:calc(.45rem - 2px); padding-bottom:calc(.45rem - 2px); }
    .btn-secondary:hover { background:#000; color:#fff; border-color:#000; }
    .topbar { font-size:14px; }
    .topbar-inner { height: 34px; padding: 0 1.5rem; flex-wrap: nowrap; }
    .topbar-left { color: rgba(255,255,255,.92); flex-wrap: nowrap; gap: 1.25rem; }
    .topbar-left a { color: rgba(255,255,255,.92); transition: color .15s; }
    .topbar-left a:hover { color: #fff; }
    .topbar-right { display: flex; align-items: center; gap: .85rem; }
    .topbar-right a { font-weight: 500; transition: color .15s; white-space: nowrap; }
    .topbar-sep { color: rgba(255,255,255,.45); }
    nav.mainnav { background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.05); }
    .nav-inner { height: 60px; gap: 1.5rem; }
    .nav-logo { font-size: 0; }
    .nav-logo img { height: 32px; width: auto; display: block; }
    .nav-links { list-style: none; margin-left: 0; gap: .1rem; flex: 1; }
    .nav-links li { display: contents; }
    .nav-links a { color: var(--muted); padding: .38rem .62rem; font-size:14px; }
    .nav-links a:hover { color: var(--green); background: var(--green-bg); }
    .nav-cta { flex-shrink: 0; }
    .nav-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; cursor: pointer; border: none; background: none; }
    .nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
    .nav-mobile { max-height: 0; overflow: hidden; visibility: hidden; background: var(--bg); border-top: 1px solid var(--border); flex-direction: column; display: flex; }
    .nav-mobile.open { max-height: calc(100vh - 60px); min-height: calc(100vh - 60px); overflow-y: auto; visibility: visible; background: #fff; }
    .nav-mobile a { padding: .7rem 1.5rem; font-size: .95rem; color: var(--text); border-bottom: 1px solid var(--border); font-weight: 500; }
    .nav-mobile .btn { margin: 1rem 1.5rem; justify-content: center; }
    @media (max-width: 640px) {
      .topbar { display: none; }
      .nav-links, .nav-cta { display: none; }
      .nav-burger { display: flex; }
    }
    .wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
    .wrap h1 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; margin-bottom: .5rem; }.wrap h2, .wrap h3.was-h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .7rem; color: var(--text); }
    .wrap h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
    .wrap p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; font-size: .95rem; }
    .wrap ol, .wrap ul { margin: .6rem 0 1.2rem 1.5rem; color: var(--muted); font-size: .95rem; line-height: 1.8; }
    .wrap ol li, .wrap ul li { margin-bottom: .35rem; }
    .sec { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.6rem 1.8rem; margin: 1.4rem 0; box-shadow: var(--shadow); }
    .sec-head { display:flex; align-items:center; gap:.7rem; margin-bottom:.6rem; }
    .sec-icon { color:var(--green); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:1.85rem; }.sec h2, .sec h3.was-h2 { margin:0; font-size:1.18rem; color:var(--text); }
    .yt-box { display:block; position:relative; padding-bottom:56.25%; height:0; margin:1rem 0 .6rem; border-radius:10px; overflow:hidden; background:linear-gradient(135deg,#1e3a5f,#0a0e1a); text-decoration:none; transition: transform .15s, box-shadow .15s; }
    .yt-box:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
    .yt-box-inner { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; color:#fff; text-align:center; padding:1rem; }
    .yt-box-inner svg { width:54px; height:54px; }
    .yt-box-title { margin-top:.55rem; font-weight:700; font-size:.98rem; }
    .yt-box-sub { margin-top:.25rem; font-size:.82rem; opacity:.85; }

    .tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; margin: 1rem 0; }
    @media(max-width:900px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; } }
    @media(max-width:600px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; } }
    @media(max-width:480px) { .tile-grid { grid-template-columns: minmax(0, 1fr); } }
    .tile { display: flex; flex-direction: column; padding: .55rem .7rem .5rem; background: #fff; border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .15s, box-shadow .15s, border-color .15s; text-decoration: none; color: inherit; min-height: 0; min-width: 0; }
    .tile-title, .tile-sub { min-width: 0; overflow-wrap: normal; hyphens: auto; }
    .tile:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.08); border-color: var(--green); }
    .tile-head { display: flex; align-items: center; gap: .6rem; }
    .tile-icon, .subhub-icon { font-size: 2.1rem; line-height: 1; flex-shrink: 0; display: flex; }
    @media(max-width:900px) { .tile-icon, .subhub-icon { font-size: 1.8rem; } }
    @media(max-width:600px) { .tile-head { align-items: baseline; gap: .5rem; } .tile-icon, .subhub-icon { font-size: 1.15rem; line-height: 1.2; } }
    .tile-title { font-size: .85rem; font-weight: 700; color: var(--text); margin: 0; line-height: 1.2; }
    .tile-sub { font-size: .7rem; color: var(--muted); line-height: 1.3; margin: .15rem 0 0; }
    .tile-arrow { display: none; }
    p[id^="cat-"] { font-weight: 700; }

    /* Unterhub-Kaesten: Bachelorarbeit, Masterarbeit, Hausarbeit */
    .subhub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin: 1.6rem 0 2.4rem; }
    @media(max-width:900px) { .subhub-grid { grid-template-columns: 1fr; gap: 1.1rem; } }
    .subhub { display: flex; flex-direction: column; min-width: 0; background: #f7fffb; border: 1px solid #bfe8d2; border-radius: 12px; padding: 1.3rem 1.4rem; }
    .subhub-head { display: flex; align-items: center; gap: .9rem; min-height: 4.6rem; }
    .subhub-icon { color: var(--text); --ci-bg: #f7fffb; }
    .subhub .subhub-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 0 0 .2rem; line-height: 1.2; }
    .subhub .subhub-title a:hover { color: var(--green); }
    .subhub .subhub-sub { font-size: .82rem; color: var(--muted); margin: .5rem 0 .9rem; line-height: 1.4; min-height: 2.4rem; }
    .subhub .subhub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; line-height: 1.4; }
    .subhub .subhub-list li { margin: 0; }
    .subhub .subhub-list a { color: var(--muted); display: inline-flex; align-items: baseline; gap: .45rem; }
    .subhub .subhub-list a::before { content: "\203A"; color: #13a35c; font-weight: 700; }
    .subhub .subhub-list a:hover { color: var(--green); }
    html[data-theme="dark"] .subhub { background: var(--green-bg); border-color: #2f6f4e; box-shadow: var(--shadow); }
    html[data-theme="dark"] .subhub-icon { --ci-bg: var(--green-bg); }
