 /* ═══════════════════════════════════════════════════════
   LERNAPP — ZENTRALES DESIGN-SYSTEM
   Einbinden: <link rel="stylesheet" href="design.css"> (Root)
          oder <link rel="stylesheet" href="../design.css"> (Unterordner)
════════════════════════════════════════════════════════ */

/* ══ THEMES — je eine dark + light Variante ══════════ */

/* DUNKEL */
[data-mode="dark"][data-theme="dunkel"]    { --bg:#0c0c0d; --surface:#141415; --surface2:#1e1e20; --border:rgba(255,255,255,0.07); --text:#f0ede8; --muted:rgba(240,237,232,0.38); --accent:#c8f135; --accent-fg:#0c0c0d; --panel-bg:#101011; }
[data-mode="dark"][data-theme="ozean"]     { --bg:#050d1a; --surface:#0a1628; --surface2:#112038; --border:rgba(100,180,255,0.10); --text:#d6eeff; --muted:rgba(214,238,255,0.38); --accent:#4db8ff; --accent-fg:#050d1a; --panel-bg:#040b15; }
[data-mode="dark"][data-theme="wald"]      { --bg:#0b110d; --surface:#111a12; --surface2:#192318; --border:rgba(100,180,100,0.10); --text:#d8edda; --muted:rgba(216,237,218,0.38); --accent:#5ec96a; --accent-fg:#0b110d; --panel-bg:#090f0a; }
[data-mode="dark"][data-theme="rose"]      { --bg:#1a0a10; --surface:#25101a; --surface2:#301520; --border:rgba(255,150,180,0.10); --text:#fce8f0; --muted:rgba(252,232,240,0.38); --accent:#ff6b9d; --accent-fg:#1a0a10; --panel-bg:#140810; }
[data-mode="dark"][data-theme="schiefer"]  { --bg:#10141c; --surface:#181e28; --surface2:#202838; --border:rgba(140,160,200,0.10); --text:#dde4f0; --muted:rgba(221,228,240,0.38); --accent:#7ba7e8; --accent-fg:#10141c; --panel-bg:#0c1016; }
[data-mode="dark"][data-theme="sand"]      { --bg:#1c1710; --surface:#26200f; --surface2:#2e2810; --border:rgba(210,180,100,0.12); --text:#f0e8d0; --muted:rgba(240,232,208,0.38); --accent:#e8a020; --accent-fg:#1c1710; --panel-bg:#161208; }
[data-mode="dark"][data-theme="lavendel"] { --bg:#110d1a; --surface:#1a1428; --surface2:#231c35; --border:rgba(160,120,255,0.10); --text:#ede8ff; --muted:rgba(237,232,255,0.38); --accent:#a87fff; --accent-fg:#110d1a; --panel-bg:#0e0b15; }
[data-mode="dark"][data-theme="pfirsich"] { --bg:#1a0e08; --surface:#261508; --surface2:#321c0a; --border:rgba(255,160,100,0.10); --text:#fff0e8; --muted:rgba(255,240,232,0.38); --accent:#ff8c42; --accent-fg:#1a0e08; --panel-bg:#140c06; }
[data-mode="dark"][data-theme="mint"]      { --bg:#081410; --surface:#0f1f18; --surface2:#162820; --border:rgba(80,200,140,0.10); --text:#e0f5ec; --muted:rgba(224,245,236,0.38); --accent:#3ecf8e; --accent-fg:#081410; --panel-bg:#060f0c; }
[data-mode="dark"][data-theme="himmel"]    { --bg:#080e1a; --surface:#0e1828; --surface2:#162235; --border:rgba(80,150,255,0.10); --text:#e0ecff; --muted:rgba(224,236,255,0.38); --accent:#5599ff; --accent-fg:#080e1a; --panel-bg:#060b14; }

/* HELL */
[data-mode="light"][data-theme="dunkel"]   { --bg:#f0ede8; --surface:#ffffff; --surface2:#e8e5e0; --border:rgba(0,0,0,0.08); --text:#141312; --muted:rgba(20,19,18,0.40); --accent:#6a7a00; --accent-fg:#fff; --panel-bg:#e4e1dc; }
[data-mode="light"][data-theme="ozean"]    { --bg:#edf4ff; --surface:#ffffff; --surface2:#ddeeff; --border:rgba(0,80,180,0.09); --text:#0a1a30; --muted:rgba(10,26,48,0.40); --accent:#1870e0; --accent-fg:#fff; --panel-bg:#deeaf8; }
[data-mode="light"][data-theme="wald"]     { --bg:#edfaf0; --surface:#ffffff; --surface2:#d8f5e0; --border:rgba(0,120,60,0.09); --text:#0a2015; --muted:rgba(10,32,21,0.40); --accent:#0d8c3c; --accent-fg:#fff; --panel-bg:#d6f0de; }
[data-mode="light"][data-theme="rose"]     { --bg:#fff0f5; --surface:#ffffff; --surface2:#ffe0ec; --border:rgba(200,50,100,0.09); --text:#2a0a18; --muted:rgba(42,10,24,0.40); --accent:#d0306a; --accent-fg:#fff; --panel-bg:#fdd8e8; }
[data-mode="light"][data-theme="schiefer"] { --bg:#f0f2f8; --surface:#ffffff; --surface2:#e0e5f5; --border:rgba(60,80,160,0.09); --text:#101828; --muted:rgba(16,24,40,0.40); --accent:#3a5abf; --accent-fg:#fff; --panel-bg:#dce2f2; }
[data-mode="light"][data-theme="sand"]     { --bg:#faf7f0; --surface:#fff8ec; --surface2:#f0e8d4; --border:rgba(120,80,20,0.10); --text:#2a2018; --muted:rgba(42,32,24,0.40); --accent:#8b5e20; --accent-fg:#fff; --panel-bg:#ede4d2; }
[data-mode="light"][data-theme="lavendel"] { --bg:#f5f0ff; --surface:#ffffff; --surface2:#ece4ff; --border:rgba(100,60,200,0.09); --text:#1a0e30; --muted:rgba(26,14,48,0.40); --accent:#6c3ce0; --accent-fg:#fff; --panel-bg:#e8deff; }
[data-mode="light"][data-theme="pfirsich"] { --bg:#fff5f0; --surface:#ffffff; --surface2:#ffe8e0; --border:rgba(200,80,40,0.09); --text:#2a100a; --muted:rgba(42,16,10,0.40); --accent:#e05020; --accent-fg:#fff; --panel-bg:#fde0d4; }
[data-mode="light"][data-theme="mint"]     { --bg:#f0fdf6; --surface:#ffffff; --surface2:#d8f5e8; --border:rgba(0,140,80,0.09); --text:#082018; --muted:rgba(8,32,24,0.40); --accent:#0a7a40; --accent-fg:#fff; --panel-bg:#ccf0dc; }
[data-mode="light"][data-theme="himmel"]   { --bg:#f0f6ff; --surface:#ffffff; --surface2:#ddeeff; --border:rgba(0,60,180,0.09); --text:#081428; --muted:rgba(8,20,40,0.40); --accent:#1455c0; --accent-fg:#fff; --panel-bg:#d8eaff; }

/* ══ RESET ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 999;
}

/* ══ NAV ══════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px; height: 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}
.nav-left  { display: flex; align-items: center; gap: 16px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-logo  { display: flex; align-items: center; gap: 9px; }
.dot-live  { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; animation: blink 2.8s ease-in-out infinite; transition: background .3s; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.nav-name  { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.nav-fach  { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.nav-divider { width: 1px; height: 18px; background: var(--border); }
.back-btn { display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; transition: color .2s; }
.back-btn:hover { color: var(--text); }
.back-btn:hover svg { transform: translateX(-3px); }
.back-btn svg { transition: transform .2s; }
.mode-btn { width: 38px; height: 38px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 17px; transition: background .2s, transform .15s; }
.mode-btn:hover { background: var(--surface); transform: scale(1.08); }
.design-btn { height: 38px; padding: 0 16px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 7px; font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .08em; transition: background .2s; }
.design-btn:hover { background: var(--surface); }

/* ══ DESIGN PANEL ════════════════════════════════════ */
#design-panel {
  position: fixed; top: 56px; right: 0;
  width: 272px; height: calc(100vh - 56px);
  background: var(--panel-bg); border-left: 1px solid var(--border);
  z-index: 90; transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1), background .3s;
  overflow-y: auto; padding: 28px 20px 40px;
  display: flex; flex-direction: column; gap: 20px;
}
#design-panel.open { transform: translateX(0); }
.p-title { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; transition: color .3s; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.theme-btn { border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 10px 9px; cursor: pointer; background: var(--surface); color: var(--text); font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 600; transition: border-color .2s, transform .15s, background .3s, color .3s; text-align: left; display: flex; flex-direction: column; gap: 7px; }
.theme-btn:hover { transform: scale(1.04); }
.theme-btn.active { border-color: var(--accent); }
.tdots { display: flex; gap: 4px; }
.tdots span { width: 9px; height: 9px; border-radius: 50%; display: block; }

/* ══ LAYOUT ══════════════════════════════════════════ */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 36px; }

/* ══ CARDS (Startseite) ══════════════════════════════ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: background .3s, border-color .3s; }
.card { background: var(--surface); padding: 24px 22px 20px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: background .18s, color .3s; cursor: pointer; animation: fadeUp .45s ease both; }
.card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent) 0%, transparent 80%); opacity: 0; transition: opacity .2s; }
.card:hover { background: var(--surface2); }
.card:hover::before { opacity: .05; }
.card:hover .arrow { transform: translate(3px,-3px); opacity: 1; }
.card:hover .icon  { transform: scale(1.12); }
.card.disabled { cursor: default; }
.card.disabled:hover { background: var(--surface); }
.card.disabled:hover::before { opacity: 0; }

/* ══ FOLDER CARDS (Fach-Unterseite) ═════════════════ */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: background .3s, border-color .3s; }
.folder { background: var(--surface); padding: 20px 18px 16px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: background .18s, color .3s; cursor: pointer; animation: fadeUp .4s ease both; }
.folder::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent) 0%, transparent 80%); opacity: 0; transition: opacity .2s; }
.folder:hover { background: var(--surface2); }
.folder:hover::before { opacity: .05; }
.folder:hover .f-arrow { transform: translate(3px,-3px); opacity: 1; }
.folder.disabled { cursor: default; }
.folder.disabled:hover { background: var(--surface); }
.folder.disabled:hover::before { opacity: 0; }

/* ══ GEMEINSAME ELEMENTE ════════════════════════════ */
.card-top, .f-top { display: flex; justify-content: space-between; align-items: flex-start; }
.icon   { font-size: 24px; line-height: 1; transition: transform .2s; }
.f-icon { font-size: 20px; line-height: 1; }
.arrow  { font-size: 15px; color: var(--accent); opacity: .25; transition: transform .2s, opacity .2s; }
.f-arrow { font-size: 13px; color: var(--accent); opacity: .25; transition: transform .2s, opacity .2s; }
.name   { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.f-name { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.sub    { font-size: 11px; color: var(--muted); font-weight: 400; transition: color .3s; }
.f-sub  { font-size: 10px; color: var(--muted); font-weight: 400; transition: color .3s; }
.badge, .f-badge { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; }
.f-badge { font-size: 9px; gap: 4px; margin-top: 4px; }
.badge::before, .f-badge::before { content: ''; border-radius: 50%; background: currentColor; }
.badge::before { width: 5px; height: 5px; }
.f-badge::before { width: 4px; height: 4px; }
.badge.ready, .f-badge.ready { color: var(--accent); }
.badge.soon,  .f-badge.soon  { color: rgba(128,128,128,0.4); }

.sec-label { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; transition: color .3s; }
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--border); transition: background .3s; }

.hero { margin-bottom: 64px; }
.hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.hero-icon { font-size: 36px; line-height: 1; }
.hero h1 { font-family: 'Instrument Serif', serif; font-size: clamp(44px, 7.5vw, 86px); line-height: 1.02; letter-spacing: -.025em; font-weight: 400; margin-bottom: 18px; }
.hero h1 i { font-style: italic; color: var(--accent); transition: color .3s; }
.hero p { font-size: 15px; color: var(--muted); font-weight: 400; max-width: 380px; line-height: 1.75; transition: color .3s; }

@keyframes fadeUp { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

footer { position: relative; z-index: 1; text-align: center; padding: 0 36px 48px; font-size: 11px; color: var(--muted); letter-spacing: .06em; transition: color .3s; }

@media (max-width: 580px) {
  .wrap { padding: 0 16px; }
  nav   { padding: 0 16px; }
  .grid, .folder-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 38px; }
  #design-panel { width: 240px; }
  .design-btn span { display: none; }
  .back-btn span   { display: none; }
}
