/* -------- Theme variables -------- */
:root {
  --bg:         #f8fafc;
  --bg-card:    #ffffff;
  --bg-input:   #ffffff;
  --text:       #1e293b;
  --text-muted: #64748b;
  --accent:     #1d4ed8;
  --accent-h:   #1e40af;
  --accent-lt:  #dbeafe;
  --border:     #e2e8f0;
  --success:    #16a34a;
  --success-bg: #f0fdf4;
  --error:      #dc2626;
  --error-bg:   #fef2f2;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 8px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --radius:     10px;
  --trans:      .18s ease;
}
.dark {
  --bg:         #0f172a;
  --bg-card:    #1e293b;
  --bg-input:   #1e293b;
  --text:       #f1f5f9;
  --text-muted: #94a3b8;
  --accent:     #60a5fa;
  --accent-h:   #93c5fd;
  --accent-lt:  #1e3a5f;
  --border:     #334155;
  --success:    #4ade80;
  --success-bg: #052e16;
  --error:      #f87171;
  --error-bg:   #450a0a;
  --shadow:     0 1px 3px rgba(0,0,0,.3);
  --shadow-md:  0 4px 8px rgba(0,0,0,.4);
}

/* -------- Reset & base -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background var(--trans), color var(--trans);
  min-height: 100vh;
}

/* -------- Layout -------- */
.container { max-width: 700px; margin: 0 auto; padding: 0 1.25rem; }

/* -------- Header -------- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
  background: var(--bg-card);
  position: sticky; top: 0; z-index: 10;
  transition: background var(--trans), border-color var(--trans);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.site-logo {
  height: 44px;
  width: auto;
  display: block;
}
.theme-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .35rem .85rem;
  font-size: .82rem;
  cursor: pointer;
  color: var(--text);
  transition: all var(--trans);
}
.theme-btn:hover { border-color: var(--accent); }

/* -------- Hero -------- */
.hero { padding: 3rem 0 2rem; text-align: center; }
.hero h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero .lead { font-size: 1rem; color: var(--text-muted); max-width: 580px; margin: 0 auto; }

/* -------- Info accordion -------- */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: background var(--trans), border-color var(--trans);
}
.info-box > summary {
  list-style: none;
  cursor: pointer;
  padding: .9rem 1.2rem;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
  transition: background var(--trans);
}
.info-box > summary:hover { background: var(--border); }
.info-box > summary::after { content: '▾'; color: var(--text-muted); }
.info-box[open] > summary::after { content: '▴'; }
.info-body { padding: 1rem 1.2rem 1.4rem; }
.info-body > p { color: var(--text-muted); margin-bottom: .75rem; }

/* -------- FAQ -------- */
.faq { margin-top: 1.2rem; }
.faq h3 { font-size: .95rem; font-weight: 700; margin-bottom: .7rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: .45rem;
  overflow: hidden;
}
.faq-item > summary {
  list-style: none;
  padding: .65rem 1rem;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
  transition: background var(--trans);
}
.faq-item > summary:hover { background: var(--border); }
.faq-item > summary::after { content: '+'; color: var(--text-muted); font-size: 1.1rem; }
.faq-item[open] > summary::after { content: '−'; }
.faq-answer { padding: .65rem 1rem .9rem; font-size: .9rem; color: var(--text-muted); }

/* -------- Section heading -------- */
.section-heading { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }

/* -------- Level cards -------- */
.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .9rem;
  margin-bottom: 2rem;
}
.level-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: left;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
  box-shadow: var(--shadow);
}
.level-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.level-card.active { border-color: var(--accent); background: var(--accent-lt); }
.level-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 4px;
  margin-bottom: .55rem;
}
.level-card h3 { font-size: .9rem; margin-bottom: .3rem; }
.level-card p { font-size: .82rem; color: var(--text-muted); }

/* -------- Social links -------- */
.social-area { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.social-note { font-size: .9rem; color: var(--text-muted); margin-bottom: .3rem; }
.social-btn {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: all var(--trans);
  box-shadow: var(--shadow);
}
.social-btn:hover { border-color: var(--accent); background: var(--accent-lt); }
.social-icon { font-size: 1.3rem; line-height: 1; width: 1.8rem; text-align: center; }

/* -------- Form -------- */
.form-section { margin-bottom: 2rem; }
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .35rem; }
input[type=email],
input[type=text] {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text);
  font-size: .95rem;
  transition: border-color var(--trans), box-shadow var(--trans);
}
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-lt);
}
.checkbox-row { display: flex; align-items: flex-start; gap: .55rem; margin-top: .2rem; }
.checkbox-row input[type=checkbox] {
  margin-top: .2rem; width: 16px; height: 16px; flex-shrink: 0; cursor: pointer;
}
.checkbox-row label { margin: 0; font-weight: 400; font-size: .875rem; cursor: pointer; }
.error-msg {
  color: var(--error);
  background: var(--error-bg);
  border-radius: 6px;
  padding: .6rem .85rem;
  font-size: .875rem;
  margin-bottom: 1rem;
}
.submit-btn {
  width: 100%;
  padding: .75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans), opacity var(--trans);
  margin-top: .5rem;
}
.submit-btn:hover:not([disabled]) { background: var(--accent-h); }
.submit-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* -------- Success card -------- */
.success-card {
  background: var(--success-bg);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1rem 0 2rem;
}
.success-card .checkmark { font-size: 2.5rem; margin-bottom: .75rem; }
.success-card h2 { color: var(--success); font-size: 1.3rem; margin-bottom: .5rem; }
.success-card p { color: var(--text-muted); font-size: .95rem; }

/* -------- Check-email card -------- */
.check-email-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1rem 0 2rem;
  box-shadow: var(--shadow);
}
.check-email-card .envelope { font-size: 2.5rem; margin-bottom: .75rem; }
.check-email-card h2 { color: var(--accent); font-size: 1.3rem; margin-bottom: .75rem; }
.check-email-card p { color: var(--text-muted); font-size: .95rem; margin-bottom: .5rem; }
.check-email-card .email-highlight { color: var(--text); font-weight: 600; }
.check-email-card small { color: var(--text-muted); font-size: .82rem; }


.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}

/* -------- Responsive -------- */
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
  .level-grid { grid-template-columns: 1fr; }
}

/* -------- Content pages (Impressum, Delete) -------- */
.content-page { padding: 2.5rem 0 3rem; }
.content-page h1 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
}
.content-page h2 {
  font-size: 1.15rem; font-weight: 700;
  margin: 2rem 0 .6rem; color: var(--text);
}
.content-page h3 {
  font-size: .95rem; font-weight: 700;
  margin: 1.25rem 0 .4rem; color: var(--text);
}
.content-page p { color: var(--text-muted); margin-bottom: .85rem; line-height: 1.7; }
.content-page .lead-text { font-size: 1rem; color: var(--text-muted); margin-bottom: 2rem; }
.content-page a { color: var(--accent); }
.content-page a:hover { text-decoration: underline; }

/* -------- Delete form card -------- */
.delete-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  max-width: 480px;
  box-shadow: var(--shadow);
}

/* -------- Footer links -------- */
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* -------- Confirm / status page layout -------- */
.confirm-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.confirm-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.confirm-card .icon { font-size: 3rem; margin-bottom: 1rem; }
.confirm-card h1 { font-size: 1.5rem; margin-bottom: .75rem; }
.confirm-card p { color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.confirm-card a { color: var(--accent); text-decoration: none; font-weight: 500; }
.confirm-card a:hover { text-decoration: underline; }
.confirm-footer { margin-top: 3rem; font-size: .8rem; color: var(--text-muted); text-align: center; }
