/* DeutschKlar — shared styles for system pages (auth, pricing, dashboard, admin, content). */

/* ---- Page hero ---- */
.page-hero { padding: clamp(48px,7vw,90px) 0 clamp(28px,4vw,48px); position: relative; text-align: center; }
.page-hero h1 { font-size: clamp(34px,5vw,56px); line-height: 1.05; letter-spacing: -0.03em; }
.page-hero .lead { margin: 16px auto 0; }
.page-hero--left { text-align: left; }
.page-hero--left .lead { margin-left: 0; }

/* ---- Auth (login / signup) ---- */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 40px; border-radius: var(--r-xl); }
.auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.auth-card .sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 26px; }
.field-row { margin-bottom: 16px; }
.field-row label { display: block; font-family: var(--font-head); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field-row input, .field-row select { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; color: #fff; font-family: var(--font-body); font-size: 15px; }
.field-row input:focus, .field-row select:focus { outline: none; border-color: rgba(120,160,255,0.6); }
.field-row select option { background: #14182a; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--cyan); }
.auth-err { background: rgba(226,70,55,0.12); border: 1px solid rgba(226,70,55,0.4); color: #ffb3aa; font-size: 13.5px; padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; display: none; }
.auth-err.show { display: block; }
.trust-line { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 22px; font-size: 12.5px; color: var(--muted); }

/* ---- Pricing ---- */
.bill-toggle { display: inline-flex; align-items: center; gap: 12px; margin: 0 auto 36px; padding: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); }
.bill-toggle button { font-family: var(--font-body); font-size: 14px; cursor: pointer; padding: 9px 20px; border-radius: 999px; border: none; background: none; color: var(--ink-soft); }
.bill-toggle button[aria-pressed="true"] { background: var(--grad-brand); color: #fff; }
.bill-toggle .save { font-size: 12px; color: #4ade80; }
.price-grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.faq-mini { max-width: 760px; margin: 60px auto 0; }
.faq-mini .acc { border-bottom: 1px solid var(--line); }

/* ---- Dashboard ---- */
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.dash-hi h1 { font-size: clamp(26px,3.4vw,38px); }
.dash-hi p { color: var(--ink-soft); margin-top: 6px; }
.dash-plan { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); font-size: 13px; color: var(--ink); }
.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 30px; }
.dash-stat { padding: 22px; border-radius: var(--r-lg); }
.dash-stat .n { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: #fff; }
.dash-stat .l { font-size: 13px; color: var(--muted); margin-top: 4px; }
.dash-courses { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 16px; }
.dash-cc { padding: 20px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; text-decoration: none; position: relative; }
.dash-cc .code { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #fff; }
.dash-cc .t { font-size: 13.5px; color: var(--ink-soft); }
.dash-cc .meter { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.dash-cc .meter > i { display: block; height: 100%; background: var(--grad-cool); }
.dash-cc.locked { opacity: 0.55; }
.dash-cc .lk { position: absolute; top: 14px; right: 14px; }

/* ---- Admin ---- */
.admin-gate { max-width: 400px; margin: 80px auto; padding: 40px; border-radius: var(--r-xl); text-align: center; }
.admin-wrap { display: none; }
.admin-wrap.on { display: block; }
.admin-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 26px; }
.admin-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.admin-tbl th, .admin-tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.admin-tbl thead th { font-family: var(--font-head); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: rgba(255,255,255,0.02); }
.admin-tbl tbody tr:last-child td { border-bottom: none; }
.admin-tbl select { background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; color: #fff; font-size: 13px; }
.admin-sec { margin-top: 30px; }

/* ---- Content pages (about/contact/blog/faq/news/podcasts/certificates) ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 16.5px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 18px; }
.prose h2 { font-size: clamp(24px,3vw,32px); margin: 40px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.prose li { font-size: 16px; color: var(--ink-soft); }
.prose a { color: var(--cyan); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info .ci { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ci .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: linear-gradient(140deg, rgba(79,125,255,0.22), rgba(154,92,255,0.12)); border: 1px solid var(--line-2); }
.contact-info .ci b { display: block; font-family: var(--font-head); color: #fff; font-size: 15px; }
.contact-info .ci span { font-size: 14px; color: var(--ink-soft); }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.blog-card { border-radius: var(--r-lg); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.blog-card:hover { transform: translateY(-4px); }
.blog-card .ph { height: 130px; display: flex; align-items: flex-end; padding: 16px; font-size: 30px; }
.blog-card .bd { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card .cat { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--cyan); }
.blog-card h3 { font-size: 17px; line-height: 1.3; }
.blog-card p { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.blog-card .rd { font-size: 12.5px; color: var(--muted); }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; }
.cert-card { padding: 26px; border-radius: var(--r-lg); text-align: center; position: relative; }
.cert-card .seal { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--grad-brand); }
.cert-card.locked { opacity: 0.5; }
.cert-card h3 { font-size: 19px; }
.cert-card p { font-size: 13px; color: var(--muted); margin-top: 6px; }

@media (max-width: 920px) {
  .dash-stats, .admin-grid { grid-template-columns: 1fr 1fr; }
  .price-grid3 { grid-template-columns: 1fr; max-width: 440px; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .dash-stats, .admin-grid, .blog-grid { grid-template-columns: 1fr; }
  .admin-tbl { font-size: 12.5px; }
  .admin-tbl th, .admin-tbl td { padding: 9px 8px; }
}