* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; color: #1a1a1a; background: #fafafa; }
header, footer { padding: 1rem 1.5rem; }
.logo { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: inherit; }
.hero { max-width: 40rem; margin: 4rem auto; padding: 0 1.5rem; text-align: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: .5rem; }
.btn { display: inline-block; margin-top: 1.5rem; padding: .8rem 1.6rem; background: #000; color: #fff; border-radius: .5rem; text-decoration: none; font-weight: 600; }
footer { text-align: center; color: #777; font-size: .9rem; }

/* Test */
.container { max-width: 40rem; margin: 2rem auto; padding: 0 1.5rem; }
.muted { color: #666; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: #000; border: 2px solid #000; }
.progress { height: .4rem; background: #e5e5e5; border-radius: 1rem; overflow: hidden; }
#progress-bar { height: 100%; width: 0; background: #000; transition: width .3s; }
#question { font-size: 1.5rem; line-height: 1.4; }
.options { display: grid; gap: .6rem; }
.option { padding: .9rem 1rem; text-align: left; font: inherit; background: #fff; border: 2px solid #ddd; border-radius: .5rem; cursor: pointer; }
.option:hover { border-color: #999; }
.option.selected { border-color: #000; background: #f0f0f0; }

/* Ergebnis */
#result { text-align: center; }
.level { font-size: 5rem; font-weight: 800; line-height: 1; }
.breakdown { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.breakdown li { background: #fff; border: 1px solid #ddd; border-radius: .4rem; padding: .3rem .7rem; font-size: .9rem; }
#cert-form { display: grid; gap: .5rem; margin-top: 2rem; text-align: left; }
#cert-form input { padding: .8rem; font: inherit; border: 2px solid #ddd; border-radius: .5rem; }

/* Zertifikat */
.certificate { background: #fff; border: 10px double #1a1a1a; padding: 3rem 2rem; text-align: center; }
.certificate h1 { font-family: Georgia, serif; font-size: 3rem; margin: .5rem 0 1.5rem; letter-spacing: .1em; text-transform: uppercase; }
.cert-brand { font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #666; margin: 0; }
.cert-name { font-family: Georgia, serif; font-size: 2rem; font-style: italic; border-bottom: 1px solid #999; display: inline-block; padding: 0 2rem .3rem; margin: .5rem 0 1rem; }
.cert-level { font-size: 2.5rem; font-weight: 800; margin: .5rem 0; }
.cert-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; font-size: .9rem; }
.cert-note { font-size: .75rem; color: #888; margin-top: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }
.actions .btn { margin-top: 0; }

@media print {
  @page { size: A4 landscape; margin: 1cm; }
  header, footer, .actions { display: none; }
  body { background: #fff; }
  .container { max-width: none; margin: 0; padding: 0; }
}
