/* ROBIK AI – Bausteine aus der Zeit vor v2, die weiter genutzt werden:
   Foto-Kugel, Agenten-Kugeln, Agenten-Karten, Funnel (/test/).
   Farben und Abschnitte der Startseite stehen in v2.css. */

/* Foto-Kugel (Robert) ----------------------------------------------------- */

.hero-orb-foto {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  /* Weißer Fotohintergrund wird per multiply zur Kugelfarbe */
  background: radial-gradient(circle at 50% 36%, #FFFFFF 0 42%, #E3E7FF 72%, #C6CEFF);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.9),
    0 10px 30px -8px rgba(43, 63, 224, 0.45);
}

.hero-orb-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: scale(1.1);
  transform-origin: 50% 28%;
}

/* Glas: Glanzlicht oben links, Tiefe unten */
.hero-orb-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse 58% 38% at 30% 16%, rgba(255, 255, 255, 0.6), transparent 70%);
  box-shadow:
    inset 0 -10px 22px rgba(43, 63, 224, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

/* Kleine Agenten-Kugeln (ausgeschnitten aus agents-orbs.jpg), die um das Foto schweben – nur Dekoration.
   Größe und Lage je Ansicht in v2.css (.held-kugel .mini-orb-n). */
.mini-orb {
  position: absolute;
  width: var(--g, 1.75rem);
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(14, 23, 48, 0.25));
  animation: orb-schweben var(--d, 6s) ease-in-out var(--v, 0s) infinite;
}

.mini-orb-1 { --d: 5.5s; }
.mini-orb-2 { --d: 6.5s; --v: -2s; }
.mini-orb-3 { --d: 7s; --v: -4s; }
.mini-orb-4 { --d: 6s; --v: -1s; }

@keyframes orb-atmen {
  0%, 100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes orb-schweben {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .mini-orb {
    animation: none;
  }
}

/* Agenten-Karten ------------------------------------------------------------ */

.agenten {
  color: var(--weiss);
}

/* 12 Karten: Kugel + Name; Klick/Enter öffnet die Karte (details, nur eine offen) */
.agenten-raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* lange deutsche Namen sprengen die Spalte nicht */
  align-items: start;
  gap: 0.75rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.agent-karte summary {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 1rem 0.75rem 1.125rem;
  border-radius: inherit;
  text-align: center;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}

.agent-karte summary::-webkit-details-marker {
  display: none;
}

/* Plus-Zeichen oben rechts, dreht sich beim Öffnen */
.agent-karte summary::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.2s ease;
}

.agent-karte[open] summary::after {
  transform: rotate(45deg);
}

.agent-orb {
  width: 4.5rem;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
  animation: orb-schweben 6s ease-in-out infinite;
}

/* versetzt, damit nicht alle gleichzeitig schweben */
.agenten-raster li:nth-child(3n + 2) .agent-orb { animation-delay: -2s; }
.agenten-raster li:nth-child(3n + 3) .agent-orb { animation-delay: -4s; }

.agent-karte h3 {
  font-size: 1.0625rem;
  line-height: 1.15;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

@media (min-width: 24rem) {
  .agent-karte h3 {
    font-size: 1.1875rem;
  }
}

/* Name reserviert 2 Zeilen, damit alle geschlossenen Karten gleich hoch sind (Handy und Desktop) */
.agent-karte h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3em;
}

@media (min-width: 40rem) {
  .agenten-raster {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .agent-orb {
    width: 5.5rem;
  }
}

@media (min-width: 62rem) {
  .agenten-raster {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .agent-orb {
    width: 7rem;
  }

  .agent-karte h3 {
    font-size: 1.375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-orb {
    animation: none;
  }
}

/* Funnel: /test/ ------------------------------------------------------- */

.test-schritte {
  display: grid;
  gap: 1.5rem var(--gap);
  margin-top: 3rem;
  counter-reset: schritt;
}

.test-schritte li {
  padding-top: 1rem;
  border-top: 3px solid var(--tinte);
  counter-increment: schritt;
}

.test-schritte li::before {
  content: counter(schritt);
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1;
  color: var(--stempel);
}

.test-schritte h2 {
  margin-top: 0.75rem;
  font-size: var(--size-h3);
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.test-schritte p {
  margin-top: 0.5rem;
  color: var(--schiefer);
}

@media (min-width: 48rem) {
  .test-schritte {
    grid-template-columns: repeat(3, 1fr);
  }
}

.test-form {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
  margin-top: 4rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius-panel);
}

.test-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.test-form input {
  min-height: 3rem;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--rand-warm);
  border-radius: var(--radius-button);
  background: var(--papier);
  font: inherit;
  color: var(--schiefer);
}

.test-form .checkbox-zeile {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  font-weight: 400;
  /* Tippfläche ≥ 44px (Label + Checkbox), ohne Layout-Änderung: Padding wird per negativem Margin ausgeglichen */
  padding-block: 0.625rem;
  margin-block: -0.625rem;
}

.test-form .checkbox-zeile input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin: 0.2rem 0 0;
  padding: 0;
}

.test-form .form-hinweis {
  font-size: var(--size-small);
  color: var(--schiefer);
}

.test-form .btn[disabled] {
  background: #C9CFDD;
  color: #4A546B;
  cursor: not-allowed;
}

.test-hinweis {
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--stempel);
  background: var(--papier);
  font-weight: 600;
}

.test-weiter {
  margin-top: 2rem;
}

.test-weiter a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
