/* ═══════════════════════════════════════════════
   TeacherOS – Shared Site Stylesheet
   ═══════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    background: #f7f1e3;
    color: #3a3428;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navigation ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 20px;
    height: 50px;
    border-bottom: 1px solid #ece4d0;
    box-shadow: 0 2px 10px rgba(60,50,20,0.06);
}

nav a {
    color: #6b6250;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 11px;
    border-radius: 7px;
    transition: background .15s, color .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

nav a:hover {
    background: #f7f1e3;
    color: #0b5394;
}

nav a.active {
    background: #eaf1fa;
    color: #0b5394;
}

nav .nav-logo {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0b5394 !important;
    margin-right: 6px;
    background: none !important;
}

nav .nav-logo i { font-size: 14px; }

nav .nav-spacer { flex: 1; }

nav .nav-app {
    background: #0b5394;
    color: #fff !important;
    border: 1px solid #0b5394;
    margin-left: 4px;
}

nav .nav-app:hover,
nav .nav-app.active {
    background: #0a4880 !important;
    color: #fff !important;
}

nav .nav-dl {
    background: #eaf1fa;
    color: #0b5394 !important;
    border: 1px solid #cfe0f2;
    margin-left: 4px;
}

nav .nav-dl:hover,
nav .nav-dl.active {
    background: #dcebf9 !important;
    color: #0a4880 !important;
}

/* ── Header – Hauptseite ── */
header {
    background: #f7f1e3;
    color: #17385c;
    text-align: center;
    padding: 52px 24px 44px;
    border-bottom: 1px solid #ece4d0;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    font-size: 36px;
    background: #eaf1fa;
    border-radius: 50%;
    margin-bottom: 16px;
    color: #0b5394;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0b5394;
}

header .subtitle {
    font-size: 1rem;
    opacity: 0.75;
    font-weight: 400;
}

/* ── Header – Unterseiten ── */
header.header-sub {
    padding: 28px 24px 26px;
    background: #f7f1e3;
    border-bottom: 1px solid #ece4d0;
    color: #17385c;
}

header.header-sub h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #0b5394;
}

header.header-sub h2 i {
    font-size: 1.1rem;
    opacity: 0.75;
}

header.header-sub .subtitle {
    font-size: 0.88rem;
    opacity: 0.75;
}

/* ── Main ── */
main {
    flex: 1;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 20px 52px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Karten ── */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 14px rgba(60,50,20,0.08);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #0b5394;
    margin-bottom: 14px;
}

.card-title i {
    width: 32px;
    height: 32px;
    background: #eaf1fa;
    color: #0b5394;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.card p {
    font-size: 0.9rem;
    color: #665f4e;
    line-height: 1.65;
}

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46,204,113,0.12);
    color: #1a7a40;
    border: 1px solid rgba(46,204,113,0.35);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 14px;
}

.badge i { font-size: 9px; color: #2ecc71; }

/* ── Page-Nav Row (Index) ── */
.page-nav-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #fff;
    color: #0b5394;
    border: 1px solid #dfd4b8;
    transition: background .15s, border-color .15s;
}

.page-nav-btn:hover { background: #eaf1fa; border-color: #cfe0f2; }

.page-nav-btn.primary {
    background: #0b5394;
    color: #fff;
    border-color: #0b5394;
}

.page-nav-btn.primary:hover { background: #0a4880; }

/* ── Feature-Grid ── */
.features-group { margin-bottom: 30px; }
.features-group:last-child { margin-bottom: 0; }
.features-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #17385c;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e4d9bc;
}
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.feature {
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px;
    box-shadow: 0 2px 14px rgba(60,50,20,0.08);
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 12px;
    background: #eaf1fa;
    color: #0b5394;
}

.feature-icon.c-teal   { background: #d9f2e6; color: #0f6e56; }
.feature-icon.c-coral  { background: #fbe3d9; color: #99461f; }
.feature-icon.c-amber  { background: #fceecb; color: #8a5a0b; }
.feature-icon.c-purple { background: #e6e3fb; color: #4a4199; }
.feature-icon.c-gray   { background: #ece7db; color: #5f5a4a; }

.feature h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2c2a22;
    margin-bottom: 5px;
}

.feature p {
    font-size: 0.78rem;
    color: #7c7460;
    line-height: 1.5;
}

/* ── Changelog ── */
.changelog { display: flex; flex-direction: column; gap: 10px; }

.cl-entry {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 14px rgba(60,50,20,0.08);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cl-version {
    flex-shrink: 0;
    min-width: 56px;
    text-align: center;
}

.cl-version .ver {
    display: inline-block;
    background: #0b5394;
    color: #fff;
    border-radius: 7px;
    padding: 3px 9px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.cl-version .ver.latest { background: #1a7a40; }

.cl-version .date {
    display: block;
    font-size: 0.68rem;
    color: #6b6250;
    margin-top: 5px;
    white-space: nowrap;
}

.cl-body { flex: 1; }

.cl-body ul { list-style: none; padding: 0; margin: 0; }

.cl-body ul li {
    font-size: 0.85rem;
    color: #4a4436;
    line-height: 1.7;
    padding-left: 16px;
    position: relative;
}

.cl-body ul li::before {
    content: '·';
    position: absolute;
    left: 5px;
    color: #0b5394;
    font-weight: 700;
}

.cl-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 6px;
    margin-right: 4px;
    vertical-align: middle;
}

.cl-tag.fix  { background: #fdecea; color: #c0392b; }
.cl-tag.new  { background: #e8f4fd; color: #1a6fa8; }
.cl-tag.imp  { background: #eafaf1; color: #1a7a40; }

/* ── Download Buttons ── */
.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #0b5394;
    color: white;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: opacity .15s;
    width: 100%;
}

.dl-btn:hover { opacity: .85; }
.dl-btn.win   { background: #1a7abd; }
.dl-btn.update { background: #fff; color: #0b5394; border: 1.5px solid #dfd4b8; }
.dl-btn.update:hover { opacity: .8; }

.dl-btn i { font-size: 22px; flex-shrink: 0; }

.dl-btn .dl-btn-text { display: flex; flex-direction: column; }
.dl-btn .dl-btn-title { font-size: 0.9rem; }
.dl-btn .dl-btn-sub   { font-size: 0.73rem; opacity: .75; font-weight: 400; margin-top: 2px; }

/* ── Update Steps ── */
.update-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.update-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.87rem;
    color: #665f4e;
}

.step-num {
    width: 24px;
    height: 24px;
    background: #0b5394;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.update-step code {
    background: #f7f1e3;
    border: 1px solid #e4d9bc;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.82rem;
    color: #3a3428;
}

/* ── Footer ── */
footer {
    background: transparent;
    border-top: 1px solid #ece4d0;
    color: #6b6250;
    text-align: center;
    padding: 16px;
    font-size: 0.75rem;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    header h1    { font-size: 1.5rem; }
    .features    { grid-template-columns: 1fr 1fr; }
    nav a span   { display: none; }
    .page-nav-row { justify-content: stretch; }
    .page-nav-btn { flex: 1; justify-content: center; }
}
