@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Unbounded:wght@500;700&display=swap');

:root {
  --red: #e10600;
  --red-dark: #b00400;
  --black: #0a0a0d;
  --black-soft: #15151c;
  --white: #f7f7fb;
  --muted: #b5b5c2;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.06);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --container: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--white);
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(225, 6, 0, 0.18), transparent 60%),
    radial-gradient(700px 420px at 88% 0%, rgba(225, 6, 0, 0.12), transparent 60%),
    linear-gradient(160deg, #0b0b12 0%, #101018 50%, #15151f 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.app {
  flex: 1 0 auto;
}

.page {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 34px 6vw 52px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page > * {
  width: 100%;
  max-width: 100%;
}

.page-header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.page-header h2 {
  margin: 0 0 6px;
}

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

/* Public header */
.public-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(8, 8, 11, 0.9);
  border-bottom: 1px solid var(--line);
}

.public-header .wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-name {
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.08em;
  font-size: 20px;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.public-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.public-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.public-nav a:hover {
  color: var(--white);
  background: rgba(225, 6, 0, 0.12);
  border-color: rgba(225, 6, 0, 0.25);
}

.public-nav .cta {
  color: var(--white);
  background: var(--red);
}

.public-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 34px 6vw 52px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* App layout */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

aside {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 20, 27, 0.95), rgba(8, 8, 11, 0.95));
  position: sticky;
  top: 0;
  height: 100vh;
}

.nav {
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav a.active,
.nav a:hover {
  color: var(--white);
  background: rgba(225, 6, 0, 0.12);
  border-color: rgba(225, 6, 0, 0.25);
}

.profile {
  margin-top: auto;
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.profile strong { display: block; }
.profile small { color: var(--muted); }

/* unified .page definition above */

/* Content blocks */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.hero h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(28px, 3.2vw, 46px);
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}

.hero-card {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-card-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.hero ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: none;
  width: 100%;
  max-width: 100%;
}

.card h3 { margin: 0 0 10px; }
.card p { margin: 0; color: var(--muted); }

.home-card {
  text-align: center;
}

/* Home */
.home-soon {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}

.home-soon-card {
  text-align: center;
  width: min(520px, 92vw);
  padding: 36px 34px;
  border-radius: 18px;
  background:
    radial-gradient(220px 120px at 50% 0%, rgba(225, 6, 0, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(16, 16, 22, 0.96), rgba(10, 10, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.home-soon-brand {
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
}

.home-soon-card h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  margin: 0;
}

.home-soon-card p {
  margin: 0 0 6px;
  color: var(--muted);
}

/* Coming soon (app pages) */
.soon-shell {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}

.soon-card {
  text-align: center;
  width: min(520px, 92vw);
  padding: 36px 34px;
  border-radius: 18px;
  background:
    radial-gradient(220px 120px at 50% 0%, rgba(225, 6, 0, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(16, 16, 22, 0.96), rgba(10, 10, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.soon-brand {
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
}

.soon-card h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  margin: 0;
}

.soon-card p {
  margin: 0 0 6px;
  color: var(--muted);
}

/* Jobs */
.jobs-header {
  align-items: flex-end;
  gap: 18px;
}

.jobs-header h1 {
  font-family: "Unbounded", sans-serif;
  margin: 0 0 6px;
  font-size: clamp(26px, 3.2vw, 40px);
}

.jobs-eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.jobs-grid {
  display: grid;
  gap: 18px;
}

.job-card {
  display: grid;
  gap: 14px;
}

.job-details {
  border: none;
}

.job-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.job-summary-title h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.job-snippet {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  max-width: 700px;
}

.job-body {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.job-summary .job-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Job detail */
.job-detail-header {
  align-items: flex-end;
  gap: 18px;
}

.job-detail-title h1 {
  font-family: "Unbounded", sans-serif;
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 40px);
}

.job-detail-eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.job-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.job-detail-main .job-section + .job-section {
  margin-top: 12px;
}

.job-detail-aside h3 {
  margin: 0 0 8px;
}

.job-detail-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .job-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Bewerbung */
.apply-header {
  align-items: flex-end;
  gap: 18px;
}

.apply-header h1 {
  font-family: "Unbounded", sans-serif;
  margin: 0 0 6px;
  font-size: clamp(26px, 3.2vw, 40px);
}

.apply-eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.apply-shell {
  display: grid;
  gap: 16px;
}

.apply-card {
  max-width: 720px;
}

.apply-form {
  gap: 12px;
}

/* Tests */
.test-header {
  align-items: flex-end;
  gap: 18px;
}

.test-header h1 {
  font-family: "Unbounded", sans-serif;
  margin: 0 0 6px;
  font-size: clamp(26px, 3.2vw, 40px);
}

.test-eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

/* Certificate */
.certificate-header {
  align-items: flex-end;
  gap: 18px;
}

.certificate-header h1 {
  font-family: "Unbounded", sans-serif;
  margin: 0 0 6px;
  font-size: clamp(26px, 3.2vw, 40px);
}

.certificate-eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.certificate-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.certificate-card-screen {
  max-width: 820px;
}

.certificate-divider {
  margin: 16px 0;
}

.certificate-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

/* Settings */
.settings-header {
  align-items: flex-end;
  gap: 18px;
}

.settings-header h1 {
  font-family: "Unbounded", sans-serif;
  margin: 0 0 6px;
  font-size: clamp(26px, 3.2vw, 40px);
}

.settings-eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.settings-card {
  margin-top: 18px;
}

.alert.success {
  border-color: rgba(34,197,94,0.4);
  color: #86efac;
}

.job-card-head h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.job-body {
  display: grid;
  gap: 12px;
}

.job-section-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.job-actions {
  display: flex;
  justify-content: flex-start;
}

.admin-stack {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}

.tags span {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

/* Dashboard helpers */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.headline h1 {
  font-family: "Unbounded", sans-serif;
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 38px);
}

.headline p { margin: 0; color: var(--muted); }

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.progress span {
  display: block;
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--red), #ff3b30);
}

.list { display: grid; gap: 12px; }

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.badge {
  background: var(--red);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.timeline { display: grid; gap: 10px; }

.timeline div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(225, 6, 0, 0.6);
}

/* Buttons */
.button,
.btn {
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.button.primary,
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 30px rgba(225, 6, 0, 0.35);
}

.button.primary:hover,
.btn-primary:hover { background: var(--red-dark); }

.button.ghost,
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}

/* Forms */
.form { display: grid; gap: 12px; }

.form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.form input,
.form textarea,
.form select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid rgba(225, 6, 0, 0.4);
  border-color: rgba(225, 6, 0, 0.4);
}

/* Auth */
.auth-shell {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.auth-card {
  padding: 28px 30px;
  border-radius: 18px;
  background:
    radial-gradient(200px 120px at 90% -10%, rgba(225, 6, 0, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(16, 16, 22, 0.96), rgba(10, 10, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 14px;
}

.auth-card--center {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-brand {
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.auth-card h2 {
  font-family: "Unbounded", sans-serif;
  font-size: 24px;
  margin: 0;
}

.auth-card p {
  margin: 0 0 6px;
  color: var(--muted);
}

.auth-form {
  gap: 12px;
}

.auth-form input {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(12, 12, 16, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
}

.auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.auth-submit {
  width: 100%;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
}

.auth-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.auth-meta a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.richtext-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.richtext-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--line);
}

.richtext-btn {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 12px;
  cursor: pointer;
}

.richtext-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.richtext-editor {
  min-height: 120px;
  padding: 12px;
  outline: none;
  color: var(--white);
  white-space: pre-wrap;
}

.stack {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.table {
  width: 100%;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 100%;
}

.courses-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.courses-header h1 {
  font-family: "Unbounded", sans-serif;
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 40px);
}

.courses-eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.course-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.course-card--modern {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 16, 22, 0.98), rgba(10, 10, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.course-card-media {
  background: rgba(255, 255, 255, 0.06);
}

.course-card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.course-card-media--empty {
  height: 180px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(240px 120px at 50% 0%, rgba(225, 6, 0, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(14, 14, 20, 0.95), rgba(10, 10, 14, 0.98));
}

.course-card-body {
  padding: 18px 20px 20px;
  display: grid;
  gap: 10px;
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-card-top h3 {
  margin: 0;
  font-size: 18px;
}

.course-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.course-card-desc {
  color: #d3d3de;
  font-size: 14px;
}

.course-card-actions {
  margin-top: 6px;
}

.course-tabs {
  margin: 16px 0 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.course-tabs .tab-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.course-tabs .tab-button.active {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

/* Course header */
.course-header {
  align-items: flex-end;
  gap: 18px;
}

.course-header-text h1 {
  font-family: "Unbounded", sans-serif;
  margin: 0 0 8px;
  font-size: clamp(26px, 3.2vw, 40px);
}

.course-header-eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.course-header-desc {
  color: var(--muted);
  line-height: 1.6;
}

.module-shell {
  margin-top: 12px;
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-head h3 {
  margin: 0;
  font-size: 18px;
}

.link-button {
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.module-list {
  display: grid;
  gap: 10px;
  width: 100%;
}

.module-item {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 16, 22, 0.98), rgba(10, 10, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.module-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.module-arrow {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
  font-size: 18px;
}

.module-item.open .module-arrow {
  transform: rotate(90deg);
}

.module-body {
  display: none;
  padding: 0 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.module-item.open .module-body {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.lesson-list {
  display: grid;
  gap: 10px;
}

.lesson-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.module-blocks .block-viewer {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--line);
}

.lesson-title {
  font-size: 14px;
  color: var(--white);
}

.lesson-block h3 {
  margin: 0 0 10px;
}

.lesson-shell {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.lesson-block {
  width: 100%;
  border-radius: 14px;
}

/* Lesson header */
.lesson-header {
  align-items: flex-end;
  gap: 18px;
}

.lesson-header-text h1 {
  font-family: "Unbounded", sans-serif;
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
}

.lesson-header-eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.lesson-header-meta {
  color: var(--muted);
  margin: 0;
}

.lesson-block h3 {
  font-size: 18px;
}

/* Flashcards */
.flashcards-header {
  align-items: flex-end;
  gap: 18px;
}

.flashcards-header-text h1 {
  font-family: "Unbounded", sans-serif;
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 36px);
}

.flashcards-header-sub {
  margin: 0;
  color: var(--muted);
}

.flashcards-panel h3 {
  margin-bottom: 12px;
}

.deck-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.deck-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.deck-card.active {
  border-color: rgba(225, 6, 0, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.file-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ppt-viewer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.ppt-thumbs {
  display: none;
}

.ppt-thumb {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  cursor: pointer;
}

.ppt-thumb.active {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.ppt-thumb canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.ppt-main {
  display: grid;
  gap: 10px;
  align-items: start;
}

.ppt-main canvas {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.ppt-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ppt-page {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .ppt-viewer {
    grid-template-columns: 1fr;
  }
  .ppt-thumbs {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    max-height: 220px;
  }
}

@media (max-width: 720px) {
  .course-tabs {
    grid-template-columns: 1fr;
  }
  .lesson-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

.lek-shell {
  padding: 20px;
}

.lek-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lek-count {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
}

.lek-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lek-badges span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
}

.lek-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.lek-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}

.lek-row:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.lek-row-title {
  font-size: 15px;
  font-weight: 600;
}

.lek-row-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.lek-row-action {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

@media (max-width: 720px) {
  .lek-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .lek-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

.richtext-editor:empty::before {
  content: 'Text eingeben...';
  color: var(--muted);
}

.form-card { max-width: 460px; margin: 0 auto; }

.muted { color: var(--muted); font-size: 14px; }

.alert {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  background: rgba(225, 6, 0, 0.12);
  border: 1px solid rgba(225, 6, 0, 0.35);
  color: #ffd7d3;
}

.placeholder {
  height: 160px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  margin-top: 10px;
}

.test { display: grid; gap: 20px; }
.option { display: block; margin: 8px 0; }

.test-question {
  display: grid;
  gap: 10px;
}

.test-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.test-question-head h3 {
  margin: 0;
}

.test-points {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
}

.test-image {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-top: 6px;
}

.test-options {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.flashcard-shell {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 16px;
  align-items: center;
  width: 100%;
  margin: 12px 0 28px;
}

.flashcard {
  background:
    radial-gradient(260px 140px at 15% 0%, rgba(225, 6, 0, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(16, 16, 22, 0.98), rgba(10, 10, 14, 0.98));
  color: var(--white);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  width: 100%;
  min-height: 360px;
}

.flashcard-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.flashcard-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.flashcard-icon svg {
  width: 18px;
  height: 18px;
}

.flashcard-icon:hover {
  color: var(--white);
  border-color: rgba(225, 6, 0, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.flashcard-body {
  margin: 16px 0 8px;
  line-height: 1.7;
}

.flashcard-question {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.flashcard-answer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

.flashcard-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.flashcard-actions.main-actions {
  justify-content: center;
}

.flashcard .button.ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.flashcard-btn {
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.status-actions .status-btn {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
}

.flashcard-hint {
  margin: 20px -28px -28px;
  padding: 12px 18px;
  background: rgba(225, 6, 0, 0.14);
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 18px 18px;
}

.flashcard-arrow {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.flashcard-arrow:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 6, 0, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.flashcard-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.flashcard-progress {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.flashcard-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.flashcard-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), #ff3b30);
}

.flashcard-stats {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.flashcard-answer[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .flashcard-shell {
    grid-template-columns: 1fr;
  }
  .flashcard {
    padding: 30px 24px;
  }
  .flashcard-hint {
    margin: 22px -24px -24px;
  }
  .flashcard-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    font-size: 24px;
    z-index: 2;
  }
  .flashcard-arrow.left { left: 8px; }
  .flashcard-arrow.right { right: 8px; }
}

@media (max-width: 600px) {
  .flashcard-question { font-size: 24px; }
  .flashcard-answer { font-size: 16px; }
}

.certificate-preview {
  display: grid;
  place-items: center;
  padding: 12px 0 28px;
}

.certificate-card {
  width: min(900px, 100%);
  aspect-ratio: 210 / 297;
  min-height: 640px;
  background: #ffffff;
  border-radius: 28px;
  padding: 56px 72px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #1f2937;
}

.certificate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(225, 6, 0, 0.12);
  border-radius: 22px;
  pointer-events: none;
}

.certificate-card::after {
  content: "LOCADEMY";
  position: absolute;
  right: 24px;
  bottom: 18px;
  font-family: "Unbounded", sans-serif;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: rgba(31, 41, 55, 0.08);
  pointer-events: none;
}

.certificate-card h3 {
  font-size: 26px;
  margin: 0 0 18px;
}

.certificate-brand {
  font-family: "Unbounded", sans-serif;
  font-size: 26px;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 18px;
}

.certificate-name {
  font-size: 34px;
  font-weight: 700;
  margin: 16px 0 18px;
}

.certificate-card p {
  font-size: 18px;
  line-height: 1.7;
  color: #374151;
}

.certificate-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  font-size: 15px;
  color: var(--muted);
}

.certificate-note { margin-top: 20px; font-size: 12px; color: var(--muted); }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  padding: 24px 6vw 40px;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.form.compact {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.wizard {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wizard-step {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.wizard-step.active {
  color: var(--white);
  background: rgba(225, 6, 0, 0.12);
  border-color: rgba(225, 6, 0, 0.25);
}

.wizard-panel {
  display: none;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

details {
  margin-top: 12px;
  color: var(--muted);
}

details summary {
  cursor: pointer;
  margin-bottom: 10px;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.deck-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 6px;
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.deck-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 6, 0, 0.35);
}

.deck-card.active {
  border-color: rgba(225, 6, 0, 0.55);
  box-shadow: 0 18px 40px rgba(225, 6, 0, 0.25);
}

.deck-title {
  font-weight: 600;
}

.deck-meta {
  font-size: 13px;
  color: var(--muted);
}
.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 12px) calc(1em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  aside { position: relative; height: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .public-header .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .certificate-card {
    aspect-ratio: auto;
    min-height: 520px;
    padding: 36px 32px;
  }
  .certificate-name { font-size: 28px; }
  .certificate-card p { font-size: 16px; }
}

 (max-width: 720px) {
  .certificate-meta { flex-direction: column; gap: 6px; text-align: center; }
}

 (max-width: 600px) {
  .certificate-card {
    padding: 28px 22px;
    border-radius: 20px;
  }
  .certificate-brand { font-size: 20px; }
  .certificate-name { font-size: 24px; }
}


/* Course editor */
.editor-shell { display: grid; gap: 18px; }
.editor-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
}
.tab-button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.tab-button.active {
  background: rgba(225, 6, 0, 0.15);
  color: var(--white);
}
.editor-panel { display: none; }
.editor-panel.active { display: block; }
.list {
  display: grid;
  gap: 8px;
}
.list-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.drag-list { display: grid; gap: 12px; }
.drag-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
}
.drag-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.drag-handle {
  cursor: grab;
  font-size: 18px;
  color: var(--muted);
}
.inline-form {
  display: grid;
  gap: 8px;
  margin: 8px 0 14px;
}
.inline-form input[type="text"],
.inline-form textarea,
.block-form input,
.block-form textarea,
.block-form select {
  width: 100%;
}
.block-form {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.module-blocks, .lesson-blocks { margin-top: 14px; }
.lesson-preview, .block-preview {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  color: var(--muted);
}

@media (max-width: 720px) {
  .editor-tabs { border-radius: 14px; }
  .tab-button { width: 100%; text-align: left; }
}

/* Content blocks */
.rich-editor {
  min-height: 120px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--white);
}
.rich-editor:focus { outline: 2px solid rgba(225, 6, 0, 0.4); }

.block-viewer {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.block-title { font-weight: 600; margin-bottom: 8px; }
.block-content { color: var(--muted); line-height: 1.6; }

.pdf-frame {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 12px;
  background: #0f0f16;
  margin-bottom: 8px;
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #0f0f16;
  margin-bottom: 8px;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-file {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 8px;
}

.link-card a { color: var(--white); font-weight: 600; }
.link-card p { color: var(--muted); margin: 6px 0 0; }
