@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/ui/fonts/BricolageGrotesque-500.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/ui/fonts/BricolageGrotesque-700.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/ui/fonts/BricolageGrotesque-800.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/ui/fonts/IBMPlexSans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/ui/fonts/IBMPlexSans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/ui/fonts/IBMPlexSans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/ui/fonts/IBMPlexMono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/ui/fonts/IBMPlexMono-500.woff2") format("woff2");
}

:root {
  --bg: #f5f3ef;
  --card: #ffffff;
  --card-soft: #faf8f4;
  --text: #16141c;
  --muted: #625d6e;
  --line: #e6e1d8;
  --line-strong: #d5cfc3;
  --pink: #e0286c;
  --orange: #f17324;
  --gold: #f5af19;
  --cyan: #1599b8;
  --green: #00b87c;
  --red: #e11d48;
  --sunset: linear-gradient(135deg, #e0286c 0%, #f17324 55%, #f5af19 100%);
  --kopf: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

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

body {
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(224, 40, 108, 0.08), transparent 60%),
    radial-gradient(800px 400px at 10% 10%, rgba(241, 115, 36, 0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Kopfleiste im echten FonFon LLC Stil */
.topbar {
  background: #16141c;
  color: #ffffff;
  padding: 14px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, #e0286c 0%, #f17324 55%, #f5af19 88%, #1599b8 100%) 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(224, 40, 108, 0.35));
}

.brand-title {
  font-family: var(--kopf);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ff4f8b 0%, #ff8f3d 55%, #ffc247 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 12px;
  color: #cfc9d8;
  letter-spacing: 0.02em;
}

.top-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: #f3eff8;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.pill.warn .dot {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* Haupt-Layout: Links das klassische FonFon-Telefon, Rechts der Schritt-für-Schritt-Aufbau */
.workspace {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 36px 60px;
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 1040px) {
  .workspace {
    grid-template-columns: 1fr;
    padding: 18px 16px 48px;
  }
  .topbar {
    padding: 12px 16px;
  }
}

/* LINKS: Klassisches FonFon LLC Telefon */
.phone-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 20px;
  box-shadow: 0 20px 50px rgba(22, 20, 28, 0.08);
  position: sticky;
  top: 96px;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.phone-title {
  font-family: var(--kopf);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.phone-rec-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 184, 124, 0.12);
  color: #008a5c;
  border: 1px solid rgba(0, 184, 124, 0.28);
}

.callerid-bar {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.callerid-bar label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink);
  margin-bottom: 4px;
}

.callerid-bar select {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  cursor: pointer;
}

.phone-display-wrap {
  background: #16141c;
  border-radius: 20px;
  padding: 16px 16px 12px;
  margin-bottom: 14px;
  color: #ffffff;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
}

.phone-display-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #a9a2b8;
  margin-bottom: 6px;
}

.phone-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.03em;
  outline: none;
  padding: 4px 0;
}

.phone-input::placeholder {
  color: #5b5468;
}

.phone-tarif-line {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  text-align: center;
  color: #ffc247;
  font-weight: 500;
}

.phone-timer {
  display: none;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #e0286c, #f17324);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.key {
  height: 60px;
  border-radius: 16px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--kopf);
  font-size: 23px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: transform 0.08s ease, background 0.12s ease, border-color 0.12s ease;
}

.key:hover {
  border-color: var(--pink);
  background: #fff;
}

.key:active {
  transform: scale(0.95);
  background: #fcebf1;
  border-color: var(--pink);
  color: var(--pink);
}

.key small {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin-top: 1px;
}

.call-actions {
  display: flex;
  gap: 10px;
}

.btn-call {
  flex: 1;
  height: 56px;
  border: none;
  border-radius: 16px;
  font-family: var(--kopf);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  background: var(--sunset);
  box-shadow: 0 10px 24px rgba(224, 40, 108, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(224, 40, 108, 0.36);
}

.btn-hangup {
  flex: 1;
  height: 56px;
  border: none;
  border-radius: 16px;
  font-family: var(--kopf);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  background: var(--red);
}

/* RECHTS: Schritt-für-Schritt-Baukasten */
.steps-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 760px) {
  .steps-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.step-tab {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.step-tab:hover {
  border-color: var(--line-strong);
}

.step-tab.active {
  border-color: var(--pink);
  box-shadow: 0 8px 24px rgba(224, 40, 108, 0.12);
}

.step-tab .s-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--card-soft);
  color: var(--muted);
  margin-bottom: 6px;
}

.step-tab.active .s-num {
  background: var(--sunset);
  color: #fff;
}

.step-tab.done .s-num {
  background: rgba(0, 184, 124, 0.15);
  color: #008a5c;
}

.step-tab .s-title {
  display: block;
  font-family: var(--kopf);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(22, 20, 28, 0.04);
}

.card-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink);
  margin-bottom: 4px;
}

.card h2 {
  font-family: var(--kopf);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.card p.lead {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--card-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--pink);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(224, 40, 108, 0.12);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  border-color: var(--text);
}

.btn.primary {
  border: none;
  background: var(--sunset);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(224, 40, 108, 0.24);
}

.btn.dark {
  border: none;
  background: var(--text);
  color: #ffffff;
}

.btn.sm {
  height: 32px;
  padding: 0 11px;
  font-size: 12px;
  border-radius: 8px;
}

.kv-grid {
  display: grid;
  gap: 8px;
}

.kv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--card-soft);
  border: 1px solid var(--line);
}

.kv-label {
  font-size: 12.5px;
  color: var(--muted);
}

.kv-value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.info-box {
  padding: 14px 16px;
  border-radius: 13px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  font-size: 13.5px;
  margin: 14px 0;
}

.info-box.ok {
  background: #eafaf3;
  border-color: #b7ebd4;
  color: #0b5e40;
}

.info-box.warn {
  background: #fff8eb;
  border-color: #f7dc9c;
  color: #7c4d05;
}

.code-view {
  background: #16141c;
  color: #e4dff0;
  border-radius: 13px;
  padding: 14px;
  font-family: var(--mono);
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--card-soft);
}

.mono {
  font-family: var(--mono);
}
