/* =============================================================
   FAQ-Hilfe-Seite — OMG KI Branding
   ============================================================= */

/* --- Brand Tokens ------------------------------------------- */
:root {
  --omg-ink:         #0a0a0a;
  --omg-ink-soft:    #15151a;
  --omg-paper:       #ece4d8;
  --omg-paper-soft:  rgba(236, 228, 216, 0.6);
  --omg-accent:      #ec8a3c;
  --omg-accent-h:    #c46a22;
  --omg-accent-soft: rgba(236, 138, 60, 0.15);
  --omg-rule:        rgba(10, 10, 10, 0.12);
  --omg-rule-strong: rgba(10, 10, 10, 0.22);
  --omg-card:        #f5efe5;
  --omg-muted:       #5a544a;
  --green:           #2f7d3a;
  --red:             #b22222;

  /* Semantic */
  --bg:        var(--omg-paper);
  --bg-soft:   #e0d7c7;
  --fg:        var(--omg-ink);
  --fg-muted:  var(--omg-muted);
  --border:    var(--omg-rule);
  --card:      var(--omg-card);
  --accent:    var(--omg-accent);
  --accent-h:  var(--omg-accent-h);
  --shadow:    0 1px 2px rgba(10, 10, 10, 0.04);
  --radius:    8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        var(--omg-ink);
    --bg-soft:   #1c1c22;
    --fg:        var(--omg-paper);
    --fg-muted:  #a8a195;
    --border:    rgba(236, 228, 216, 0.14);
    --card:      var(--omg-ink-soft);
    --shadow:    0 1px 2px rgba(0, 0, 0, 0.25);
  }
}

/* --- Reset + Base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Archivo Black', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
a { color: var(--accent); }
a:hover { color: var(--accent-h); }
.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* --- Header ------------------------------------------------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  font-family: 'Archivo Black', system-ui, sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.brand span {
  color: var(--accent);
  font-weight: inherit;
}
nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover {
  background: var(--bg-soft);
  color: var(--accent);
}

/* --- Hero --------------------------------------------------- */
.hero { padding: 64px 0 32px; text-align: center; }
.hero h1 { font-size: 2.5rem; margin: 0 0 16px; }
.lead {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* --- FAQ ---------------------------------------------------- */
.faq { margin: 40px 0; }
.faq h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 16px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item:hover {
  border-color: var(--omg-rule-strong);
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  transition: background 0.12s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover,
.faq-item[open] summary { background: var(--bg-soft); }
.faq-item summary::after {
  content: "+";
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body {
  padding: 0 20px 18px;
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.faq-body p { margin: 0; }
.faq-body a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(236, 138, 60, 0.35);
}
.faq-body a:hover { border-bottom-color: var(--accent-h); color: var(--accent-h); }

/* --- Divider + CTA ------------------------------------------ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}
.cta { text-align: center; padding: 8px 0 56px; }
.cta h2 { font-size: 1.5rem; margin: 0 0 12px; }
.cta p { color: var(--fg-muted); margin: 0 0 24px; }

/* --- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-h);
  color: #fff;
}
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--omg-rule-strong);
}

/* --- Footer ------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 24px 0;
}
.footer-row { display: flex; justify-content: center; }
.footer-row p {
  color: var(--fg-muted);
  margin: 0;
  font-size: 0.85rem;
}
.footer-row a {
  color: var(--fg-muted);
  text-decoration: none;
}
.footer-row a:hover { color: var(--accent); }

/* --- Modal -------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.55);
  animation: fadeIn .15s ease-out;
}
.modal-panel {
  position: relative; z-index: 1;
  background: var(--card);
  color: var(--fg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  box-shadow: 0 14px 40px rgba(10, 10, 10, 0.20);
  max-width: 520px; width: 100%;
  padding: 30px 30px 26px;
  animation: slideUp .2s ease-out;
}
.modal-panel h2 { margin: 0 0 8px; font-size: 1.35rem; }
.modal-intro { margin: 0 0 22px; color: var(--fg-muted); font-size: 0.9rem; }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: 0;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  color: var(--fg-muted);
  padding: 4px 10px; border-radius: 4px;
  transition: color 0.12s, background 0.12s;
}
.modal-close:hover {
  color: var(--accent);
  background: var(--omg-accent-soft);
}

/* --- Form --------------------------------------------------- */
#ticket-form label { display: block; margin-bottom: 14px; }
#ticket-form label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
#ticket-form input,
#ticket-form textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
#ticket-form input:focus,
#ticket-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--omg-accent-soft);
}
#ticket-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
.form-status {
  margin: 14px 0 0;
  min-height: 1.3em;
  font-size: 0.9rem;
}
.form-status.ok  { color: var(--green); }
.form-status.err { color: var(--red); }
@media (prefers-color-scheme: dark) {
  .form-status.ok  { color: #6ad07a; }
  .form-status.err { color: #f08080; }
}

/* --- Animations + Responsive -------------------------------- */
@keyframes fadeIn  { from { opacity: 0; }                              to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); }  to { opacity: 1; transform: translateY(0); } }

@media (max-width: 560px) {
  .hero { padding: 44px 0 24px; }
  .hero h1 { font-size: 1.85rem; }
  .modal-panel { padding: 24px 20px 20px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
}
