/* =========================================================
   CARDES – Öffentliches Feedback-Formular (cp.cardes.xyz/feedback)
   Gleicher Look wie cardes.xyz (Orange, Inter)
   ========================================================= */
:root {
  color-scheme: dark;
  --bg: #0c0c0c;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --line: rgba(255,255,255,.07);
  --line-hi: rgba(255,255,255,.12);
  --text: #f5f5f4;
  --muted: #a3a3a3;
  --faint: #6b6b6b;
  --accent: #ff7a1a;
  --accent-hover: #ff8f3d;
  --accent-soft: rgba(255,122,26,.12);
  --ok: #46a758;
  --info: #3e9bff;
  --bad: #e5484d;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg { width: 18px; height: 18px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fb-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Footer immer unten – auch wenn die Seite wenig Inhalt hat */
body.fb { min-height: 100vh; display: flex; flex-direction: column; }
body.fb > main { flex: 1 0 auto; width: 100%; align-content: start; }
body.fb > .fb-footer { margin-top: auto; }

/* ---------- Buttons ---------- */
.fb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--text); background: var(--surface);
  cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s, opacity .2s;
}
.fb-btn:hover { transform: translateY(-1px); }
.fb-btn.go { background: var(--accent); color: #fff; }
.fb-btn.go:hover { background: var(--accent-hover); }
.fb-btn.ghost { border-color: var(--line); }
.fb-btn.ghost:hover { border-color: rgba(255,122,26,.5); }
.fb-btn:disabled { opacity: .5; cursor: default; transform: none; }

/* ---------- Navigation ---------- */
.fb-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,12,12,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.fb-nav .fb-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.fb-logo img { height: 30px; width: auto; }
.fb-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.fb-links a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: .92rem; transition: color .2s; }
.fb-links a:hover, .fb-links a[aria-current="page"] { color: var(--text); }
.fb-links a[aria-current="page"] { background: var(--surface); }
.fb-cta { display: flex; align-items: center; gap: 8px; }
.fb-cta .fb-btn { padding: 9px 16px; font-size: .88rem; }
.fb-burger { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.fb-burger svg { width: 22px; height: 22px; }

/* ---------- Kopf ---------- */
.fb-head { position: relative; padding: 72px 0 40px; }
.fb-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 460px at 80% 0%, rgba(255,122,26,.10), transparent 65%);
}
.fb-head .fb-wrap { position: relative; }
.fb-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.fb-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; margin: 14px 0 16px; }
.fb-head h1 span { color: var(--accent); }
.fb-head p { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }

/* ---------- Layout ---------- */
.fb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-bottom: 100px; }
.fb-main { display: grid; gap: 16px; min-width: 0; }

/* ---------- Panel ---------- */
.fb-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.fb-body { padding: 30px 28px 12px; }
.fb-step-head { margin-bottom: 24px; }
.fb-step-head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.fb-step-head p { color: var(--muted); margin-top: 6px; }

/* Stepper */
.fb-steps { list-style: none; margin: 0; padding: 18px 28px; display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.fb-steps li { flex: 1; position: relative; min-width: 0; }
.fb-stepbtn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 4px;
  background: none; border: 0; font: inherit; font-weight: 600; font-size: .88rem; color: var(--faint); text-align: left;
}
button.fb-stepbtn { cursor: pointer; }
.fb-stepbtn .n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-hi); font-size: .8rem; transition: all .2s;
}
.fb-stepbtn .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-steps li.cur .fb-stepbtn { color: var(--text); }
.fb-steps li.cur .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.fb-steps li.done .fb-stepbtn { color: var(--muted); }
.fb-steps li.done .n { background: var(--accent-soft); border-color: rgba(255,122,26,.4); color: var(--accent); }
.fb-status.solved li.done .n { background: rgba(70,167,88,.15); border-color: rgba(70,167,88,.5); color: var(--ok); }

/* Art-Auswahl */
.fb-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; padding: 0; margin: 0 0 22px; }
.fb-type { position: relative; }
.fb-type input { position: absolute; opacity: 0; pointer-events: none; }
.fb-type-card {
  display: flex; gap: 14px; align-items: center; height: 100%; padding: 18px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s;
}
.fb-type-card:hover { border-color: var(--line-hi); }
.fb-type-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--muted); transition: all .2s; }
.fb-type-ico svg { width: 22px; height: 22px; }
.fb-type-card b { display: block; font-size: 1rem; }
.fb-type-card small { color: var(--muted); font-size: .85rem; }
.fb-type input:checked + .fb-type-card { border-color: var(--accent); background: linear-gradient(160deg, rgba(255,122,26,.12), var(--bg) 70%); }
.fb-type input:checked + .fb-type-card .fb-type-ico { background: var(--accent); color: #fff; }
.fb-type input:focus-visible + .fb-type-card { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Felder */
.fb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fb-field { margin-bottom: 18px; }
.fb-field > label, .fb-label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.fb-field > label em { color: var(--accent); font-style: normal; }
.fb-input, .fb-select select {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-hi); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.fb-input::placeholder { color: var(--faint); }
.fb-input:focus, .fb-select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.fb-input { resize: vertical; min-height: 130px; line-height: 1.5; }
textarea.fb-input.short { min-height: 90px; }
.fb-select { position: relative; }
.fb-select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.fb-select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.fb-help { display: flex; justify-content: space-between; gap: 12px; color: var(--faint); font-size: .8rem; margin-top: 6px; }
.fb-count.near { color: var(--accent); }
.fb-field.invalid .fb-input { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(229,72,77,.12); }
.fb-field.invalid > label { color: #ff8080; }

/* Auswirkung */
.fb-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fb-seg label { position: relative; }
.fb-seg input { position: absolute; opacity: 0; pointer-events: none; }
.fb-seg span {
  display: block; text-align: center; padding: 11px 8px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-hi); background: var(--bg); font-size: .88rem; font-weight: 600; color: var(--muted); transition: all .2s;
}
.fb-seg span:hover { color: var(--text); }
.fb-seg input:checked + .l0 { border-color: var(--ok); color: var(--ok); background: rgba(70,167,88,.1); }
.fb-seg input:checked + .l1 { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.fb-seg input:checked + .l2 { border-color: var(--bad); color: #ff8080; background: rgba(229,72,77,.1); }
.fb-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Zusammenfassung / Ticket */
.fb-sum { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; margin: 0 0 24px; padding: 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.fb-sum dt { color: var(--faint); font-size: .85rem; }
.fb-sum dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fb-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fb-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: rgba(255,255,255,.06);
}
.fb-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fb-tag.bad  { color: #ff8080; background: rgba(229,72,77,.12); }
.fb-tag.idea { color: var(--info); background: rgba(62,155,255,.12); }
.fb-tag.ok   { color: var(--ok); background: rgba(70,167,88,.12); }
.fb-tag.warn { color: var(--accent); background: var(--accent-soft); }
.fb-tag.info { color: var(--info); background: rgba(62,155,255,.12); }
.fb-message {
  white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px 18px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: .95rem; max-height: 420px; overflow: auto;
}
.fb-note { color: var(--muted); padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-hi); margin-bottom: 18px; }

/* Fuß des Panels */
.fb-foot { display: flex; align-items: center; gap: 12px; padding: 18px 28px; border-top: 1px solid var(--line); }
.fb-foot > p, .fb-foot > span { margin-right: auto; color: var(--faint); font-size: .84rem; display: flex; align-items: center; gap: 8px; }
.fb-foot > p svg { color: var(--accent); width: 16px; height: 16px; }

/* Hinweise */
.fb-banner { padding: 14px 18px; border-radius: 14px; background: rgba(229,72,77,.1); border: 1px solid rgba(229,72,77,.35); color: #ff9a9a; font-size: .92rem; }
.fb-success {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(70,167,88,.12), var(--surface) 60%); border: 1px solid rgba(70,167,88,.3);
}
.fb-success > div { flex: 1; min-width: 0; }
.fb-success b { display: block; font-size: 1.02rem; }
.fb-success small { display: block; color: var(--muted); margin: 4px 0 12px; }
.fb-copy { display: flex; gap: 8px; }
.fb-copy .fb-input { font-size: .85rem; padding: 10px 12px; }
.fb-copy .fb-btn { padding: 10px 14px; font-size: .85rem; }

/* Große Status-Symbole */
.fb-center { text-align: center; padding: 48px 28px 40px; }
.fb-center h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-top: 18px; }
.fb-center p { color: var(--muted); margin-top: 8px; }
.fb-big { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.fb-big svg { width: 34px; height: 34px; }
.fb-big.ok  { background: rgba(70,167,88,.14); color: var(--ok); }
.fb-big.bad { background: rgba(229,72,77,.12); color: #ff8080; }
.fb-big.sm  { width: 44px; height: 44px; margin: 0; flex: none; }
.fb-big.sm svg { width: 22px; height: 22px; }

/* Honeypot */
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Seitenspalte ---------- */
.fb-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.fb-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fb-card h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.fb-card > p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.fb-tk { display: flex; gap: 8px; }
.fb-tk .fb-input { padding: 10px 12px; font-size: .9rem; min-width: 0; }
.fb-tk .fb-btn { padding: 10px 14px; font-size: .88rem; }
.fb-flow { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.fb-flow li { display: flex; gap: 12px; font-size: .9rem; color: var(--muted); }
.fb-flow b { display: block; color: var(--text); font-size: .92rem; }
.fb-flow .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .78rem; margin-top: 1px; }
.fb-card.discord { background: linear-gradient(160deg, rgba(88,101,242,.18), var(--surface) 70%); }
.fb-card.discord .fb-btn { width: 100%; background: #5865f2; color: #fff; }
.fb-card.discord .fb-btn:hover { background: #6b77f5; }

/* ---------- Footer ---------- */
.fb-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; }
.fb-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.fb-foot-grid img { height: 30px; width: auto; margin-bottom: 16px; }
.fb-foot-grid p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.fb-foot-grid h5 { font-size: .8rem; font-weight: 600; color: var(--text); margin: 4px 0 16px; }
.fb-foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.fb-foot-grid a { color: var(--muted); transition: color .2s; }
.fb-foot-grid a:hover { color: var(--accent); }
.fb-copyright { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--faint); font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .fb-layout { grid-template-columns: 1fr; }
  .fb-side { position: static; grid-template-columns: 1fr 1fr; }
  .fb-foot-grid { grid-template-columns: 1fr 1fr; }
}
/* "Control Panel"-Button auf schmalen Laptops ausblenden (bleibt im Footer erreichbar) */
@media (max-width: 1080px) {
  .hide-sm { display: none; }
}
@media (max-width: 860px) {
  .fb-links { display: none; }
  .fb-burger { display: block; }
  .fb-nav.open .fb-links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(12,12,12,.97); padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 600px) {
  .fb-wrap { padding: 0 16px; }
  .fb-head { padding: 48px 0 28px; }
  .hide-xs { display: none; }
  .fb-side, .fb-types, .fb-grid, .fb-foot-grid { grid-template-columns: 1fr; }
  .fb-steps { padding: 14px 16px; }
  .fb-steps .lbl { display: none; }
  .fb-steps li:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: 44px; right: 8px; height: 1px; background: var(--line-hi); }
  .fb-body { padding: 24px 18px 8px; }
  .fb-foot { padding: 16px 18px; flex-wrap: wrap; }
  .fb-foot > p { width: 100%; }
  .fb-foot .fb-btn.go { margin-left: auto; }
  .fb-seg { grid-template-columns: 1fr; }
  .fb-sum { grid-template-columns: 1fr; gap: 2px; }
  .fb-sum dd { margin-bottom: 8px; }
  .fb-copy { flex-direction: column; }
}
