/* Stannek GmbH, Unterseite STANNEKasp und Infrastruktur.
   Baut auf site.css und datev-solution.css auf (Variablen, Kopf, Buttons, Szenen, Karten, Fußzeile). Nur Ergänzungen für diese Seite.
   Bewegung greift nur mit html.js-motion; ohne JavaScript bleibt jeder Abschnitt normal lesbar. */

/* ---------- 1 · Einstieg mit Infrastruktur-Stapel ---------- */
.inf-hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--white); background: var(--night);
  min-height: calc(100svh - var(--header-h)); display: grid; align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4.5rem, 8vw, 6rem);
}
.inf-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 70% at 76% 46%, rgba(63, 0, 255, 0.55), transparent 70%),
    radial-gradient(40% 50% at 8% 100%, rgba(196, 255, 69, 0.14), transparent 70%),
    linear-gradient(180deg, #0a1333 0%, #07112e 100%);
}
.inf-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(70% 70% at 72% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 72% 50%, #000 0%, transparent 75%);
}
.inf-hero-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 960px) { .inf-hero-grid { grid-template-columns: 1fr 1.08fr; } }
.inf-hero-copy { display: grid; gap: 1.4rem; max-width: 36rem; min-width: 0; container-type: inline-size; }
.inf-hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.8rem); font-weight: 700; letter-spacing: -0.024em; line-height: 1.02;
  color: var(--white);
}
/* „Ein Ansprechpartner.“ bleibt in einer Zeile: Schriftgröße folgt der Breite der Textspalte */
.inf-hero h1 { font-size: min(clamp(2.2rem, 5.4vw, 4.8rem), 10.4cqi); }
.inf-hero h1 span {
  background: linear-gradient(90deg, #ffffff 0%, #e0ffa0 55%, var(--ds-glow) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.inf-hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--on-night-muted); max-width: 32em; }
.inf-hero .btn-row { margin-top: 0.4rem; }
.inf-hint { bottom: 1.4rem; }

.inf-stack-wrap { margin: 0; min-width: 0; }
.inf-stack { width: 100%; height: auto; display: block; overflow: visible; }
.js-motion .inf-stack { animation: inf-float 8s ease-in-out infinite; }
@keyframes inf-float { 50% { transform: translateY(-8px); } }

/* Schichten: bauen sich beim Laden von unten auf, heben sich beim Zeigen an */
.inf-layer { cursor: pointer; outline: none; transition: transform 0.35s var(--ease); }
.js-motion .inf-layer { animation: inf-drop 0.8s var(--ease) backwards; animation-delay: calc(var(--i) * 0.13s + 0.2s); }
@keyframes inf-drop { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: none; } }
.inf-layer:hover, .inf-layer:focus-visible { transform: translateY(-8px); }
.inf-layer .top { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; transition: stroke 0.3s; }
.inf-layer .side-l { fill: #1a0b66; stroke: rgba(255, 255, 255, 0.12); }
.inf-layer .side-r { fill: #10074a; stroke: rgba(255, 255, 255, 0.12); }
.inf-layer.is-guard .side-l { fill: #4f7a12; }
.inf-layer.is-guard .side-r { fill: #375a0b; }
.inf-layer .top-people { fill: rgba(196, 255, 69, 0.12); stroke: var(--ds-glow); stroke-width: 1.2; stroke-dasharray: 3 4; }
.inf-layer .people circle { fill: var(--ds-glow); }
.inf-layer .leds circle { fill: #c4ff45; }
.js-motion .inf-layer .leds circle { animation: inf-blink 2.4s ease-in-out infinite; }
.js-motion .inf-layer .leds circle:nth-child(2) { animation-delay: 0.6s; }
.js-motion .inf-layer .leds circle:nth-child(3) { animation-delay: 1.2s; }
@keyframes inf-blink { 50% { opacity: 0.25; } }
.inf-layer .tick { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.inf-layer .lbl { fill: var(--white); font-family: var(--font-display); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; transition: fill 0.3s; }
.inf-layer .sub { fill: #aab4d4; font-family: var(--font-body); font-size: 13px; }
.inf-layer:hover .top, .inf-layer:focus-visible .top { stroke: var(--ds-glow); stroke-width: 2; }
.inf-layer:hover .lbl, .inf-layer:focus-visible .lbl { fill: var(--ds-glow); }

/* Datenpunkte laufen durch alle Schichten bis ins Rechenzentrum */
.inf-beam path { fill: none; stroke: rgba(196, 255, 69, 0.28); stroke-width: 1; stroke-dasharray: 2 6; }
.inf-beam .pk { fill: #eaffbf; opacity: 0; filter: drop-shadow(0 0 6px rgba(196, 255, 69, 0.9)); }
.js-motion .inf-beam .pk { animation: inf-pk 3.6s linear infinite; }
.js-motion .inf-beam .pk2 { animation-delay: -1.2s; }
.js-motion .inf-beam .pk3 { animation-delay: -2.4s; }
@keyframes inf-pk { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(440px); opacity: 0; } }

@media (max-width: 959px) {
  .inf-hero { min-height: 0; }
  .inf-hero-sub { font-size: 1rem; }
  .inf-hint { display: none; }
  .inf-layer .lbl { font-size: 19px; }
  .inf-layer .sub { font-size: 15px; }
}

/* ---------- Hardware ---------- */
.inf-card-icon { width: 64px; height: 64px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 0.4rem; }
.inf-cycle-title { margin: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.inf-cycle { margin-bottom: 0; }
@media (min-width: 1000px) { .inf-cycle.process { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Telefonie ---------- */
.inf-tel-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 960px) { .inf-tel-grid { grid-template-columns: 1fr 1fr; } }
.inf-tel-copy { display: grid; gap: 1.4rem; min-width: 0; align-content: start; }
.inf-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; justify-self: start;
  padding: 0.3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.inf-switch::before {
  content: ""; position: absolute; top: 0.3rem; bottom: 0.3rem; left: 0.3rem; width: calc(50% - 0.3rem);
  border-radius: 999px; background: var(--blue); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 0.4s var(--ease);
}
.inf-switch button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; border-radius: 999px;
  min-height: 44px; padding: 0.6rem 1.3rem; white-space: nowrap;
  font: 650 1rem var(--font-display); color: var(--ink); transition: color 0.3s;
}
.inf-switch button[aria-selected="true"] { color: var(--white); }
.inf-switch button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.inf-tel-panel { display: grid; gap: 0.8rem; }
.inf-tel-panel[hidden] { display: none; }
.inf-tel-panel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.inf-tel-panel > p { color: var(--muted); max-width: 34em; }
.inf-tel-panel.is-in { animation: inf-in 0.45s var(--ease) both; }
@keyframes inf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.inf-tel-note { color: var(--muted); font-size: 0.98rem; border-left: 3px solid var(--accent); padding-left: 0.9rem; }

/* Anruf, der auf allen Geräten klingelt */
.inf-phone {
  --tone: var(--accent); --tone-bg: rgba(196, 255, 69, 0.16);
  margin: 0; position: relative; overflow: hidden; display: grid; gap: 1.4rem; justify-items: center;
  padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--ds-radius-lg); color: var(--white);
  background: radial-gradient(70% 60% at 50% 18%, rgba(63, 0, 255, 0.55), transparent 70%), var(--night);
  transition: background 0.5s var(--ease);
}
.inf-phone[data-mode="teams"] {
  --tone: #b29dff; --tone-bg: rgba(178, 157, 255, 0.2);
  background: radial-gradient(70% 60% at 50% 18%, rgba(122, 92, 255, 0.6), transparent 70%), var(--night);
}
.inf-call {
  width: min(100%, 300px); display: grid; justify-items: center; gap: 0.45rem; text-align: center;
  padding: 1.5rem 1.2rem 1.3rem; border-radius: 28px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16);
}
.inf-call-app { font: 600 0.78rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tone); transition: color 0.4s; }
.inf-ring { position: relative; width: 88px; height: 88px; display: grid; place-items: center; margin: 0.5rem 0; }
.inf-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--tone-bg); border: 1.5px solid var(--tone); transition: background 0.4s, border-color 0.4s; }
.inf-ring > span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--tone); opacity: 0; }
.inf-ring svg { position: relative; z-index: 1; width: 34px; height: 34px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linejoin: round; }
.js-motion .is-ringing .inf-ring > span { animation: inf-wave 2.4s var(--ease) infinite; }
.js-motion .is-ringing .inf-ring > span:nth-child(2) { animation-delay: 0.8s; }
.js-motion .is-ringing .inf-ring > span:nth-child(3) { animation-delay: 1.6s; }
@keyframes inf-wave { from { transform: scale(0.75); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
.js-motion .is-ringing .inf-ring svg { animation: inf-shake 2.4s ease-in-out infinite; }
@keyframes inf-shake { 0%, 40%, 100% { transform: rotate(0); } 5%, 15%, 25% { transform: rotate(-12deg); } 10%, 20%, 30% { transform: rotate(12deg); } }
.inf-call b { font: 650 1.2rem var(--font-display); }
.inf-call-sub { color: #aab4d4; font-size: 0.92rem; }
.inf-call-btns { display: flex; gap: 2.4rem; margin-top: 0.8rem; }
.inf-call-btns i { width: 46px; height: 46px; border-radius: 50%; display: block; background-position: center; background-repeat: no-repeat; background-size: 22px; }
.inf-call-btns .no { background-color: #ff7a66; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.inf-call-btns .yes { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230a1333' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.inf-devices { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 420px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.inf-devices li {
  display: grid; justify-items: center; gap: 0.4rem; padding: 0.9rem 0.3rem; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03);
  font: 600 0.85rem var(--font-display); color: #dbd3fb; text-align: center;
}
.inf-devices svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.js-motion .is-ringing .inf-devices li { animation: inf-lit 2.4s var(--ease) infinite; animation-delay: calc(var(--d) * 0.22s); }
@keyframes inf-lit {
  0%, 100% { border-color: rgba(255, 255, 255, 0.14); color: #dbd3fb; box-shadow: none; }
  18%, 46% { border-color: var(--tone); color: var(--white); box-shadow: 0 0 0 4px var(--tone-bg); }
}

/* ---------- IT-Security: angeheftete Szene ---------- */
.inf-shield { position: relative; background: linear-gradient(180deg, #07112e 0%, var(--night) 100%); }
.inf-shield-stage { padding: var(--section-y) 0; }
.inf-shield-inner { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.inf-shield .ds-asp-head h2 { color: var(--white); max-width: 18em; }
.inf-shield-grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
@media (min-width: 960px) { .inf-shield-grid { grid-template-columns: 1.35fr 1fr; } }
.inf-shield-visual { margin: 0; display: grid; gap: 0.7rem; min-width: 0; }
.inf-shield-visual canvas {
  display: block; width: 100%; height: clamp(230px, 42svh, 420px);
  border-radius: 22px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
}
.inf-shield-legend { display: flex; gap: 1.4rem; font-size: 0.9rem; color: var(--on-night-muted); }
.inf-shield-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.45rem; vertical-align: 1px; }
.inf-shield-legend .lg-threat::before { background: #ff8a5b; }
.inf-shield-legend .lg-mail::before { background: var(--white); }
.inf-shield-steps .ds-step-no { text-transform: none; }

.js-motion .inf-shield { height: 420vh; }
.js-motion .inf-shield-stage {
  position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); overflow: clip;
  padding: clamp(1.5rem, 4vh, 3.5rem) 0; display: grid; align-items: center;
}
@media (max-width: 959px) {
  .inf-shield .ds-asp-head h2 { font-size: clamp(1.7rem, 6.4vw, 2.4rem); }
  .js-motion .inf-shield-stage { align-items: start; }
  .js-motion .inf-shield-inner { gap: 1rem; }
  .js-motion .inf-shield-visual canvas { height: clamp(190px, 30svh, 270px); }
}
@media (max-width: 959px) and (max-height: 760px) {
  .js-motion .inf-shield-stage { padding: 1rem 0; }
  .inf-shield .ds-asp-head h2 { font-size: 1.55rem; }
  .js-motion .inf-shield-visual canvas { height: 22svh; }
  .inf-shield-legend { display: none; }
}

/* ---------- Die beiden Security-Bausteine ---------- */
.inf-sec-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
@media (min-width: 900px) { .inf-sec-grid { grid-template-columns: 1fr 1fr; } }
.inf-sec-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--ds-radius-lg);
  padding: clamp(1.6rem, 3.4vw, 2.75rem); display: grid; gap: 0.9rem; align-content: start;
}
.inf-sec-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.inf-sec-card > p { color: var(--muted); }
.inf-sec-card.is-people .inf-card-icon { stroke: var(--petrol); }
.inf-sec-card.is-people .ds-card-kicker { color: var(--petrol); }

@media (prefers-reduced-motion: reduce) {
  .inf-stack, .inf-layer, .inf-layer .leds circle, .inf-beam .pk, .inf-ring > span, .inf-ring svg, .inf-devices li, .inf-tel-panel.is-in { animation: none !important; }
  .inf-layer, .inf-switch::before { transition: none; }
}
