/* mein-ausbildung.de design system · 2026-06 · Graphit-Blau + kühler Sand + Terrakotta
   Темы: dark (default) и light через [data-theme="light"] на <html> */

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

:root {
  /* палитра */
  --c-midnight: #10243F;
  --c-deep: #0A1626;
  --c-steel: #1E3A5F;
  --c-sand: #E4E1D6;
  --c-terra: #BE6E51;
  --c-cyan: #4FD1E3;
  --c-paper: #F4F2EC;

  /* семантика · dark по умолчанию */
  --bg: var(--c-deep);
  --glow1: rgba(30, 58, 95, 0.7);
  --glow2: rgba(190, 110, 81, 0.08);
  --fg: #F2F1EB;
  --fg-strong: var(--c-sand);
  --text: rgba(242, 241, 235, 0.82);
  --text-dim: rgba(242, 241, 235, 0.6);
  --text-faint: rgba(242, 241, 235, 0.45);
  --line: rgba(190, 110, 81, 0.18);
  --hairline: rgba(228, 225, 214, 0.1);
  --card-bg: rgba(30, 58, 95, 0.35);
  --card-hover: rgba(30, 58, 95, 0.65);
  --accent: var(--c-terra);
  --on-accent: var(--c-midnight);
  --accent-hover-bg: var(--c-sand);
  --link: var(--c-cyan);
  --link-border: rgba(79, 209, 227, 0.4);
  --chip-border: rgba(79, 209, 227, 0.3);
  --tldr-bg: rgba(79, 209, 227, 0.06);
  --tldr-border: rgba(79, 209, 227, 0.25);
  --ava-grad-a: var(--c-steel);
  --ava-grad-b: var(--c-midnight);
  --ava-text: var(--c-sand);
}

[data-theme="light"] {
  --bg: var(--c-paper);
  --glow1: rgba(30, 58, 95, 0.07);
  --glow2: rgba(190, 110, 81, 0.07);
  --fg: #1A2940;
  --fg-strong: var(--c-midnight);
  --text: rgba(20, 35, 58, 0.85);
  --text-dim: rgba(20, 35, 58, 0.6);
  --text-faint: rgba(20, 35, 58, 0.42);
  --line: rgba(176, 95, 68, 0.28);
  --hairline: rgba(16, 36, 63, 0.12);
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-hover: #FFFFFF;
  --accent: #B05F44;
  --on-accent: #FFF8F2;
  --accent-hover-bg: var(--c-midnight);
  --link: #11707F;
  --link-border: rgba(17, 112, 127, 0.4);
  --chip-border: rgba(17, 112, 127, 0.35);
  --tldr-bg: rgba(17, 112, 127, 0.06);
  --tldr-border: rgba(17, 112, 127, 0.28);
  --ava-grad-a: #2E4668;
  --ava-grad-b: var(--c-midnight);
  --ava-text: var(--c-sand);
}

html { scroll-behavior: smooth; }
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body {
  background:
    radial-gradient(ellipse at 80% 10%, var(--glow1) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, var(--glow2) 0%, transparent 50%),
    var(--bg);
  transition: background 0.25s ease, color 0.25s ease;
}

.page { max-width: 1100px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); }
.page--narrow { max-width: 860px; }

/* Top bar */
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.top .brand { color: var(--accent); text-decoration: none; font-weight: 600; }
.top nav.menu { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav.menu a { color: var(--text-dim); text-decoration: none; font-size: 12px; letter-spacing: 0.08em; }
.top nav.menu a:hover { color: var(--fg); }
.top .right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 4px; }
.lang a { color: var(--text-dim); text-decoration: none; padding: 4px 8px; border-radius: 4px; font-size: 12px; letter-spacing: 0.08em; }
.lang a.active { color: var(--link); border: 1px solid var(--chip-border); }
.lang a:hover { color: var(--fg); }

.theme-toggle {
  cursor: pointer; background: none; border: 1px solid var(--line); border-radius: 100px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-dim); transition: all 0.2s ease; line-height: 1;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--fg); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: inline; }
[data-theme="light"] .theme-toggle .sun { display: inline; }
[data-theme="light"] .theme-toggle .moon { display: none; }

/* Typography */
h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.04; font-weight: 300; letter-spacing: -0.025em; margin-bottom: 1.4rem; }
h1 strong { font-weight: 600; color: var(--fg-strong); }
[data-theme="light"] h1 strong { color: var(--accent); }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 500; }
.lead { font-size: clamp(17px, 2vw, 21px); font-weight: 300; line-height: 1.6; color: var(--text); max-width: 700px; margin-bottom: 2.5rem; }
.lead .accent { color: var(--link); font-weight: 400; }
h2 { font-size: clamp(23px, 3vw, 30px); font-weight: 600; color: var(--fg-strong); margin: 3rem 0 1.1rem; letter-spacing: -0.01em; }
h3 { font-size: clamp(18px, 2.2vw, 21px); font-weight: 600; color: var(--fg); margin: 1.8rem 0 0.7rem; }
p { font-size: 16px; line-height: 1.7; color: var(--text); margin-bottom: 1.1rem; max-width: 720px; }
p strong, li strong { color: var(--fg); font-weight: 600; }
article ul, article ol { margin: 0.4rem 0 1.2rem 1.3rem; max-width: 700px; }
article li { font-size: 16px; line-height: 1.7; color: var(--text); margin-bottom: 0.35rem; }
a.inline { color: var(--link); text-decoration: none; border-bottom: 1px dotted var(--link-border); }
a.inline:hover { border-bottom-style: solid; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 1.5rem 0 2.5rem; }
.card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 6px;
  text-decoration: none; color: var(--fg);
  transition: all 0.2s ease; backdrop-filter: blur(6px);
}
.card:hover { background: var(--card-hover); border-color: var(--accent); transform: translateY(-2px); }
.card.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.card.primary:hover { background: var(--accent-hover-bg); border-color: var(--accent-hover-bg); }
[data-theme="light"] .card.primary:hover { color: #F2F1EB; }
.card .kicker { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--link); font-weight: 500; }
.card.primary .kicker { color: inherit; opacity: 0.7; }
.card h3 { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0; color: inherit; }
.card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; margin: 0; }
.card.primary p { color: inherit; opacity: 0.8; }
.card .arrow { font-size: 13px; margin-top: auto; padding-top: 8px; letter-spacing: 0.02em; font-weight: 500; }
.card .meta { font-size: 12px; color: var(--text-faint); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 2.4rem; }
.btn {
  padding: 12px 22px; border-radius: 100px; text-decoration: none; font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--line); color: var(--fg); transition: all 0.2s ease;
}
.btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.solid { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.solid:hover { background: var(--accent-hover-bg); border-color: var(--accent-hover-bg); }
[data-theme="light"] .btn.solid:hover { color: #F2F1EB; }

/* Article components */
.breadcrumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--text-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--fg); }

.byline {
  display: flex; align-items: center; gap: 14px; margin: 1.4rem 0 2.2rem;
  padding: 14px 18px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 6px;
  font-size: 13.5px; color: var(--text-dim); max-width: 720px;
}
.byline .ava, .avatar {
  border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ava-grad-a), var(--ava-grad-b));
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--ava-text); letter-spacing: 0.04em;
}
.byline .ava { width: 44px; height: 44px; font-size: 15px; border-width: 1.5px; }
.avatar { width: 108px; height: 108px; font-size: 34px; }
.byline a { color: var(--link); text-decoration: none; }
.byline .date { color: var(--text-faint); }

.hero-profile { display: flex; gap: 28px; align-items: center; margin-bottom: 3rem; flex-wrap: wrap; }

.keyfacts, .facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 13px; margin: 0 0 2.4rem; max-width: 800px;
}
.keyfacts .kf, .facts .fact {
  padding: 16px 17px; border-radius: 6px;
  background: var(--card-bg); border: 1px solid var(--line); backdrop-filter: blur(6px);
}
.keyfacts .kf .v, .facts .fact .num { font-size: 22px; font-weight: 600; color: var(--fg-strong); line-height: 1.15; }
[data-theme="light"] .keyfacts .kf .v, [data-theme="light"] .facts .fact .num { color: var(--accent); }
.keyfacts .kf .k, .facts .fact .label { font-size: 12px; color: var(--text-dim); margin-top: 5px; line-height: 1.45; }

.tldr {
  margin: 0 0 2.4rem; padding: 20px 24px; max-width: 720px;
  background: var(--tldr-bg); border: 1px solid var(--tldr-border); border-radius: 6px;
}
.tldr .t { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--link); font-weight: 600; margin-bottom: 0.7rem; }
.tldr ul { margin: 0 0 0 1.2rem; }
.tldr li { font-size: 15.5px; line-height: 1.65; color: var(--text); margin-bottom: 0.45rem; }

.toc {
  margin: 0 0 2.8rem; padding: 18px 22px; max-width: 720px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 6px;
}
.toc .t { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 0.6rem; }
.toc ol { margin: 0 0 0 1.3rem; }
.toc li { font-size: 14.5px; line-height: 1.8; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--link); }

.note {
  margin: 1.6rem 0; padding: 18px 20px; border-left: 3px solid var(--accent);
  background: var(--card-bg); border-radius: 0 6px 6px 0;
  font-size: 15.5px; line-height: 1.65; color: var(--text); max-width: 720px;
}
.note.personal { border-left-color: var(--link); }
.note .nt { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; display: block; margin-bottom: 0.4rem; }
.note.personal .nt { color: var(--link); }

.timeline { list-style: none; margin: 1.5rem 0 0.5rem; max-width: 680px; }
.timeline li {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--hairline);
  font-size: 15.5px; line-height: 1.55; color: var(--text);
}
.timeline .year { color: var(--link); font-weight: 600; font-size: 15px; }

ul.src { margin: 0.4rem 0 1.1rem 1.2rem; max-width: 660px; }
ul.src li { font-size: 15.5px; line-height: 1.7; color: var(--text); }

.contact { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 0; }
.contact a {
  padding: 10px 18px; border-radius: 100px; text-decoration: none; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); color: var(--fg); transition: all 0.2s ease;
}
.contact a:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

table { border-collapse: collapse; width: 100%; max-width: 760px; margin: 1.2rem 0 1.8rem; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--hairline); line-height: 1.5; }
th { color: var(--fg-strong); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 2px solid var(--line); }
td { color: var(--text); }
tr:hover td { background: var(--card-bg); }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }

details.faq {
  max-width: 720px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--card-bg); margin-bottom: 10px; overflow: hidden;
}
details.faq summary {
  cursor: pointer; padding: 15px 20px; font-size: 15.5px; font-weight: 600; color: var(--fg);
  list-style: none; position: relative; padding-right: 44px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 20px; font-weight: 400;
}
details.faq[open] summary::after { content: "−"; }
details.faq .a { padding: 0 20px 16px; }
details.faq .a p { font-size: 15px; margin-bottom: 0.6rem; }

.sources { max-width: 720px; margin: 1rem 0 2rem; }
.sources li { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }
.sources a { color: var(--text-dim); }
.sources a:hover { color: var(--link); }

.updated { font-size: 13px; color: var(--text-faint); margin: 2.5rem 0 0; }

.legal-card {
  padding: 22px 24px; border-radius: 6px; margin-bottom: 1rem; max-width: 720px;
  background: var(--card-bg); border: 1px solid var(--line);
}
.legal-card p { margin-bottom: 0.3rem; }

/* Footer */
footer.site {
  margin-top: 4.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-faint); line-height: 1.6;
}
footer.site .row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; margin-bottom: 0.8rem; }
footer.site a { color: var(--text-dim); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
footer.site strong.brandline { color: var(--fg-strong); }

/* Hub list */
.hub-item { display: block; padding: 20px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; max-width: 760px; }
.hub-item h3 { margin: 0 0 6px; font-size: 19px; color: var(--fg); transition: color 0.15s ease; }
a.hub-item:hover h3 { color: var(--link); }
.hub-item p { margin: 0 0 6px; font-size: 14.5px; color: var(--text-dim); }
.hub-item .meta { font-size: 12.5px; color: var(--text-faint); }
.tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line); border-radius: 100px;
  padding: 3px 10px; margin-bottom: 8px;
}
.tag.soon { color: var(--text-faint); border-color: var(--hairline); }

@media (max-width: 640px) {
  .top { flex-wrap: wrap; }
  .timeline li { grid-template-columns: 52px 1fr; gap: 12px; }
}
