/* =====================================================================
   ON. – Abschnitt auf der Startseite (eigene Planungssoftware)
   Nur auf index.html eingebunden. Baut auf style.css auf
   (Variablen, .eyebrow, .text-link, .reveal, .section-pad).
   ===================================================================== */

.on-section { position: relative; }

.on-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.on-copy h2 { margin: 0 0 clamp(18px, 2.4vw, 28px); }
.on-copy p:not(.eyebrow) { max-width: 54ch; color: #aaa; }

/* Bühne mit Logo, Ringen, Wortwechsel und ON-AIR-Licht */
.on-stage {
  position: relative;
  height: clamp(320px, 34vw, 460px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(255, 111, 104, .22), transparent 70%),
    radial-gradient(50% 60% at 85% 100%, rgba(122, 92, 255, .14), transparent 70%),
    #070707;
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}
.on-logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 13vw, 168px);
  aspect-ratio: 1.15;
  padding-right: 12%;
  background: var(--accent);
  color: #050505;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  margin-top: -36px;
  animation: on-breathe 3.2s ease-in-out infinite;
}
.on-rings { position: absolute; inset: 0; display: grid; place-items: center; margin-top: -36px; }
.on-rings i {
  grid-area: 1 / 1;
  width: clamp(170px, 18vw, 230px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 111, 104, .5);
  opacity: 0;
  animation: on-ring 3.6s ease-out infinite;
}
.on-rings i:nth-child(2) { animation-delay: 1.2s; }
.on-rings i:nth-child(3) { animation-delay: 2.4s; }

.on-word {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(26px, 3.4vw, 44px);
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.on-flip { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; color: var(--accent); }
.on-flip-in { display: block; animation: on-flip 7.2s cubic-bezier(.7, 0, .2, 1) infinite; }
.on-flip b { display: block; height: 1.1em; }

.on-tally {
  position: absolute;
  top: clamp(18px, 2.4vw, 28px);
  right: 12%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 111, 104, .55);
  color: var(--accent);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .2em;
}
.on-tally i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: on-blink 1.6s steps(2, start) infinite; }

/* Drei Karten */
.on-cards {
  list-style: none;
  margin: clamp(48px, 6vw, 90px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.on-card {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px);
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .3s ease;
}
.on-card::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .5s var(--ease);
}
.on-card.is-visible::before { width: 64px; }
.on-card:hover { border-color: rgba(255, 111, 104, .45); }
.on-card:hover::before { width: calc(100% + 2px); }
.js .on-card.reveal:nth-child(2) { transition-delay: .12s; }
.js .on-card.reveal:nth-child(3) { transition-delay: .24s; }

.on-card-name { margin: 0 0 14px; color: #fff; font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.on-card-name b { color: var(--accent); font-weight: 800; }
.on-card h3 { margin: 0 0 16px; color: #8b8b88; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; line-height: 1.5; }
.on-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.on-card ul li { position: relative; padding-left: 20px; color: #d4d4d0; font-size: .95rem; line-height: 1.45; }
.on-card ul li::before { content: ""; position: absolute; left: 0; top: .66em; width: 9px; height: 2px; background: var(--accent); }

/* Bewegung */
@keyframes on-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes on-ring { 0% { opacity: .7; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes on-blink { to { opacity: .25; } }
@keyframes on-flip {
  0%, 28% { transform: translateY(0); }
  33%, 61% { transform: translateY(-1.1em); }
  66%, 94% { transform: translateY(-2.2em); }
  100% { transform: translateY(-3.3em); }
}

/* Tablet / Handy */
@media (max-width: 900px) {
  .on-grid { grid-template-columns: 1fr; }
  .on-stage { height: 300px; clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%); }
  .on-cards { grid-template-columns: 1fr; }
}

/* Reduzierte Bewegung: alles ruhig, Wort bleibt auf LIVE */
@media (prefers-reduced-motion: reduce) {
  .on-logo, .on-rings i, .on-flip-in, .on-tally i { animation: none; }
  .on-rings i { opacity: .25; }
}
