@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --teal:        #1A6B72;
  --teal-dark:   #114850;
  --teal-mid:    #2A8A93;
  --teal-light:  #E0F2F3;
  --teal-pale:   #F0F9FA;
  --orange:      #E07B39;
  --orange-light:#FDF0E8;
  --gray:        #F5F6F7;
  --gray-mid:    #E4E7EA;
  --dark:        #1C2B2D;
  --text:        #2D3E40;
  --muted:       #6B7E80;
  --white:       #FFFFFF;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 2px 12px rgba(26,107,114,0.09);
  --shadow-md:   0 6px 24px rgba(26,107,114,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--gray);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  background: var(--teal-dark);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-family: 'DM Serif Display', serif;
  color: white;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-brand span { color: var(--teal-light); }
.nav-back {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.nav-back:hover { color: white; }

/* ── HEADER / HERO ── */
.hero {
  background: linear-gradient(140deg, var(--teal-dark) 0%, var(--teal) 55%, var(--teal-mid) 100%);
  padding: 56px 24px 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: var(--teal-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: white;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-white {
  background: white;
  color: var(--teal);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.btn-white:hover { background: var(--teal-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }

/* ── MAIN ── */
.main {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── MODULE GRID (Startseite) ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}
.card {
  background: white;
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover {
  border-color: var(--teal-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-icon { font-size: 1.8rem; line-height: 1; }
.card-nr {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.8;
}
.card-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--dark);
  line-height: 1.3;
}
.card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.card-arrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
}
.card-zusatz {
  background: var(--orange-light);
  border-color: #F5C9A8;
}
.card-zusatz .card-nr,
.card-zusatz .card-arrow { color: var(--orange); }

/* ── FORTSCHRITT ── */
.progress-box {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.progress-box h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.pi {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--gray);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
}
.pi:hover { background: var(--teal-light); }
.pi.done { background: var(--teal-light); }
.pi .chk {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  color: transparent;
  transition: all 0.15s;
}
.pi.done .chk { background: var(--teal); border-color: var(--teal); color: white; }
.pbar-wrap { margin-top: 14px; background: var(--gray-mid); border-radius: 50px; height: 5px; overflow: hidden; }
.pbar { height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-mid)); border-radius: 50px; width: 0; transition: width 0.4s ease; }
.plabel { font-size: 0.75rem; color: var(--muted); margin-top: 6px; text-align: right; }

/* ── INTRO BOX ── */
.intro-box {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  border-left: 4px solid var(--teal);
}
.intro-box p {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ── MODUL-SEITE ── */
.modul-header { margin-bottom: 36px; }
.modul-nr-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.modul-title-h {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--dark);
  margin-bottom: 10px;
}
.modul-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}
.modul-meta span { display: flex; align-items: center; gap: 5px; }

/* ── INHALTSABSCHNITTE ── */
.section { margin-bottom: 40px; }
.section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal-light);
}
.section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 10px;
  margin-top: 22px;
}
.section p { margin-bottom: 14px; font-size: 0.95rem; color: var(--text); }
.section ul, .section ol {
  padding-left: 1.4em;
  margin-bottom: 14px;
}
.section li {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 6px;
}

/* ── INFO / WARNING BOXEN ── */
.box {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.box strong { display: block; margin-bottom: 5px; font-size: 0.92rem; }
.box-info { background: var(--teal-light); border-left: 4px solid var(--teal); color: var(--teal-dark); }
.box-warn { background: var(--orange-light); border-left: 4px solid var(--orange); color: #7A3A10; }
.box-ok { background: #E8F5E9; border-left: 4px solid #2E7D32; color: #1B5E20; }

/* ── PROMPT BOXEN ── */
.prompt-wrap { margin: 20px 0; }
.prompt-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  background: #2D2D2D;
  padding: 8px 16px 6px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.prompt-body {
  background: #1E1E1E;
  color: #E8E8E8;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  padding: 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  white-space: pre-wrap;
  word-break: break-word;
}
.prompt-copy {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--teal);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: right;
  width: 100%;
}
.prompt-copy:hover { text-decoration: underline; }

/* ── TABELLE ── */
.tbl { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.88rem; }
.tbl th { background: var(--teal); color: white; padding: 10px 12px; text-align: left; font-weight: 600; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--gray-mid); color: var(--text); }
.tbl tr:nth-child(even) td { background: var(--gray); }
.tbl tr:last-child td { border-bottom: none; }

/* ── NAVIGATION ZWISCHEN MODULEN ── */
.modul-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-mid);
  gap: 12px;
  flex-wrap: wrap;
}
.modul-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--teal-light);
  background: white;
  transition: all 0.2s;
}
.modul-nav a:hover { background: var(--teal-light); }

/* ── ABSCHLUSS-BOX ── */
.done-box {
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-top: 40px;
}
.done-box h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.done-box p { font-size: 0.9rem; color: var(--teal-dark); opacity: 0.85; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
}
footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
footer a:hover { color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero { padding: 40px 18px 48px; }
  .main { padding: 28px 16px 60px; }
  .grid { grid-template-columns: 1fr; }
  .progress-items { grid-template-columns: 1fr 1fr; }
  .modul-nav { flex-direction: column; }
  .modul-nav a { width: 100%; justify-content: center; }
}
