:root {
  --accent: #6366f1;
  --bg: #0b1020;
  --bg-soft: #121a33;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.1);
  --ink: #eef1fb;
  --muted: #9aa3bd;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --danger-ink: #fca5a5;
  --radius: 18px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, var(--bg-soft), var(--bg) 60%);
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
}

/* Animierte Hintergrund-Lichtflecken in der Akzentfarbe */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  background: var(--accent);
}
.bg-orbs span:nth-child(1) { width: 380px; height: 380px; top: -120px; left: -80px; }
.bg-orbs span:nth-child(2) { width: 300px; height: 300px; bottom: -100px; right: -60px; opacity: 0.25; }
.bg-orbs span:nth-child(3) { width: 220px; height: 220px; top: 40%; left: 60%; opacity: 0.18; }

/* Header */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 40px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink);
  text-decoration: none;
}
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
}
.lang-switch { display: inline-flex; gap: 4px; background: var(--card); border: 1px solid var(--card-border); border-radius: 999px; padding: 4px; }
.lang {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.lang.active { color: #fff; background: var(--accent); }

/* Layout */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 24px) 48px;
  flex: 1;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 44px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  margin-bottom: 24px;
}
.card.center { text-align: center; }

/* Hero */
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
}
.domain-name {
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.05;
  margin: 18px 0 6px;
  word-break: break-word;
  background: linear-gradient(120deg, #fff, color-mix(in srgb, var(--accent) 70%, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.headline { font-size: 1.15rem; font-weight: 600; margin: 0 0 12px; }
.description { color: var(--muted); line-height: 1.6; margin: 0 0 18px; max-width: 56ch; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 24px; }
.tag {
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--ink);
}

/* Preisbox */
.price-box {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
}
.price-meta { display: flex; flex-direction: column; gap: 2px; }
.price-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.price-value { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

.secure-note { margin: 18px 0 0; font-size: 0.85rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn-primary:hover { box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--card-border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-block { width: 100%; margin-top: 6px; }

/* Angebotsformular */
.offer h2 { margin-top: 0; }
.offer-intro { color: var(--muted); margin-top: 0; }
.min-offer { font-size: 0.85rem; color: var(--accent); margin: -6px 0 16px; }
.offer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide, .btn-block { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.amount-input { position: relative; display: flex; align-items: center; }
.amount-input .currency { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.amount-input input { padding-left: 34px; }

.contact-line {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-line a { color: var(--accent); text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }

/* Flash / Fehler */
.flashes { margin-bottom: 18px; display: grid; gap: 10px; }
.flash {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
}
.flash.error { background: var(--danger-bg); color: var(--danger-ink); border: 1px solid color-mix(in srgb, var(--danger-ink) 40%, transparent); }

/* Danke-Seite */
.check {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 2rem; font-weight: 700; color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 45%, transparent);
}
.hero.center .btn { margin-top: 18px; }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .offer-form { grid-template-columns: 1fr; }
  .price-box { flex-direction: column; align-items: stretch; }
  .cta-row .btn { flex: 1; }
}

/* ---------------------------------------------------------------- */
/*  Admin-Bereich (/admin)                                          */
/* ---------------------------------------------------------------- */
.admin .topbar .btn { padding: 8px 14px; }
.admin-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 24px) 48px;
  flex: 1;
}
.admin-count { color: var(--muted); margin: 4px 0 16px; }
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
}
.admin-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.admin-table a { color: var(--accent); text-decoration: none; }
.admin-table a:hover { text-decoration: underline; }
.admin-table .nowrap { white-space: nowrap; }
.admin-table .muted { color: var(--muted); }
.admin-table .msg { max-width: 360px; white-space: pre-wrap; word-break: break-word; }
.empty { color: var(--muted); }
