/* ==========================================================================
   Extra diensten (diensten.php): beheerconsole in de kop, diensten met eigen illustratie,
   werkwijze als lijn met knooppunten, koppeling met hosting.
   Animaties lopen alleen in beeld (.is-playing) en hebben een rustige eindstand.
   ========================================================================== */

/* ---------- Kop met beheerconsole ---------- */

.svc-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.svc-hero .phero__title { max-width: 14ch; }
.svc-hero .phero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
@media (max-width: 960px) { .svc-hero__grid { grid-template-columns: minmax(0, 1fr); } }

.console { padding: 1.2rem; border-radius: var(--r-xl); animation: fade-up 1s var(--ease) .3s both; }
.console__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .2rem .3rem 1rem; border-bottom: 1px solid var(--line); }
.console__site { display: inline-flex; align-items: center; gap: .5rem; font: 500 .98rem var(--f-display); letter-spacing: -.03em; }
.console__site .icon { width: 15px; height: 15px; color: var(--volt); }
.console__state { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .6rem; border-radius: 999px; background: rgba(93, 242, 164, .1); color: var(--ok); font: 500 .6rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.console__state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.is-playing .console__state i { animation: m-blink 2s ease-in-out infinite; }

.console__rows { display: grid; gap: 2px; margin: .6rem 0; padding: 0; list-style: none; }
.console__rows li {
    position: relative;
    display: grid; grid-template-columns: 30px minmax(0, 1fr) 96px 78px; align-items: center; gap: .75rem;
    padding: .6rem .5rem;
    border-radius: 10px;
    font-size: .88rem;
}
/* Een controle loopt rij voor rij langs: de rij licht kort op. */
.console__rows li::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(216, 255, 69, .06); box-shadow: inset 0 0 0 1px rgba(216, 255, 69, .22); opacity: 0; pointer-events: none; }
.is-playing .console__rows li::before { animation: console-scan 7.5s var(--ease-io) infinite; animation-delay: calc(var(--i) * 1.5s); }
.console__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.console__icon .icon { width: 15px; height: 15px; }
.console__rows b { font-weight: 600; }
.console__rows em { justify-self: end; font: 500 .62rem var(--f-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }
.console__viz { display: flex; align-items: center; height: 24px; overflow: hidden; }
.console__spark { width: 100%; height: 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.console__spark path { fill: none; stroke: var(--mint); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.is-playing .console__spark g { animation: console-spark 2.4s linear infinite; }
.console__bar { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.console__bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--mint); transform-origin: left; }
.is-playing .console__bar i { animation: console-fill 7.5s var(--ease-io) infinite 1.5s; }
.console__dots { display: flex; gap: 5px; }
.console__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--volt); opacity: .35; }
.console__dots--mint i { background: var(--mint); }
.is-playing .console__dots i { animation: console-dot 1.8s ease-in-out infinite; }
.is-playing .console__dots i:nth-child(2) { animation-delay: .2s; }
.is-playing .console__dots i:nth-child(3) { animation-delay: .4s; }
.is-playing .console__dots i:nth-child(4) { animation-delay: .6s; }
.is-playing .console__dots i:nth-child(5) { animation-delay: .8s; }
.console__shield { width: 18px; height: 20px; background: var(--ok); opacity: .85; clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%); }
.is-playing .console__shield { animation: m-blink 3s ease-in-out infinite; }
.console__foot { display: flex; align-items: center; gap: .6rem; padding: .9rem .4rem .1rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-2); }
.console__foot .icon { width: 15px; height: 15px; color: var(--volt); }
@media (max-width: 480px) {
    .console__rows li { grid-template-columns: 28px minmax(0, 1fr) 64px; }
    .console__rows em { display: none; }
}

/* ---------- Diensten: index + blokken ---------- */

.svc-layout { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.svc-index { position: sticky; top: calc(var(--nav-h) + 40px); }
.svc-index nav { display: grid; gap: 2px; margin-bottom: 1.2rem; }
.svc-index nav a {
    display: flex; align-items: center; gap: .7rem;
    padding: .62rem .75rem;
    border-radius: 10px;
    color: var(--text-2);
    font-size: .9rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.svc-index nav a .icon { width: 16px; height: 16px; flex: none; color: var(--muted); transition: color .2s; }
.svc-index nav a:hover { background: var(--surface); color: var(--text); }
.svc-index nav a[aria-current="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--volt); }
.svc-index nav a[aria-current="true"] .icon { color: var(--volt); }
.svc-index__cta { width: 100%; }

.svc-list { display: grid; gap: 1rem; min-width: 0; }
.svc {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: 1.5rem 2rem;
    padding: clamp(1.3rem, 3vw, 2rem);
    border-radius: var(--r-xl);
    scroll-margin-top: calc(var(--nav-h) + 40px);
}
.svc__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.2rem; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.svc__icon .icon { width: 20px; height: 20px; }
.svc h2 { margin-bottom: .5rem; font: 600 1.25rem/1.25 var(--f-body); letter-spacing: -.015em; }
.svc__lead { margin-bottom: 1.1rem; color: var(--text-2); }
.svc__points { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; font-size: .93rem; }
.svc__points li { display: flex; gap: .6rem; align-items: flex-start; }
.svc__points .icon { width: 17px; height: 17px; margin-top: .15rem; color: var(--mint); }
.svc__link { margin-top: 1.2rem; }
.svc__art {
    display: grid; place-items: center;
    height: 180px;
    border-radius: var(--r-lg);
    background: radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, .04), transparent 70%), rgba(0, 0, 0, .18);
    box-shadow: inset 0 0 0 1px var(--line);
}
.svc__art svg { width: 100%; max-width: 270px; height: auto; overflow: visible; }

@media (max-width: 1000px) {
    .svc-layout { grid-template-columns: minmax(0, 1fr); }
    .svc-index { position: static; }
    .svc-index nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc-index__cta { display: none; }
}
@media (max-width: 720px) {
    .svc { grid-template-columns: minmax(0, 1fr); }
    .svc__art { order: -1; height: 150px; }
    .svc-index nav { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Werkwijze: knooppunten op een lijn die zich vult ---------- */

.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.flow::before, .flow::after { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; }
.flow::before { background: var(--line-2); }
.flow::after { background: var(--volt); transform-origin: left; transform: scaleX(1); }
.js .flow::after { transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.js .flow:has(.is-in)::after { transform: scaleX(1); }
.flow__step { position: relative; }
.flow__node {
    position: relative; z-index: 1;
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-bottom: 1.2rem;
    border-radius: 50%;
    background: #0b0f17;
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: var(--text);
    transition: box-shadow .5s var(--ease), color .5s;
    transition-delay: calc(.4s + var(--i) * .35s);
}
.flow__node .icon { width: 19px; height: 19px; }
.flow__step.is-in .flow__node, html:not(.js) .flow__node { box-shadow: inset 0 0 0 1.5px var(--volt); color: var(--volt); }
.flow__step .step__n { display: block; margin-bottom: .3rem; }
.flow__step h3 { margin-bottom: .35rem; font-size: 1.04rem; }
.flow__step p { font-size: .92rem; color: var(--text-2); }
@media (max-width: 900px) {
    .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .flow::before, .flow::after { left: 21px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
    .flow::after { transform-origin: top; }
    .js .flow::after { transform: scaleY(0); }
    .js .flow:has(.is-in)::after { transform: scaleY(1); }
    .flow__step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 1.1rem; padding-bottom: 1.6rem; }
    .flow__node { grid-row: 1 / span 3; margin-bottom: 0; }
}

/* ---------- Combineren met hosting ---------- */

.combine { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem 3.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.6rem); border-radius: var(--r-xl); }
.combine h2 { margin-bottom: .7rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.12; }
.combine__copy p:not(.eyebrow) { color: var(--text-2); }
.combine__links { display: grid; gap: 2px; }
.combine__links a {
    display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 18px; align-items: center; gap: .9rem;
    padding: .75rem .8rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background .2s;
}
.combine__links a:hover { background: var(--surface-2); }
.combine__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.combine__icon .icon { width: 17px; height: 17px; }
.combine__links b { font-weight: 600; }
.combine__links small { font: 400 .7rem var(--f-mono); color: var(--muted); white-space: nowrap; }
.combine__links a > .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.combine__links a:hover > .icon { transform: translateX(3px); color: var(--volt); }
@media (max-width: 900px) { .combine { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .combine__links small { display: none; } .combine__links a { grid-template-columns: 36px minmax(0, 1fr) 18px; } }

/* ---------- Nieuwe illustraties (motion.php) ---------- */

/* DNS-records: elke rij krijgt een vinkje. */
.m-dns__ok { fill: var(--mint); }
.m-dns__tick { fill: none; stroke: #04130e; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.is-playing .m-dns__ok, .is-playing .m-dns__tick { animation: m-dns 6s var(--ease) infinite; animation-delay: calc(var(--i) * .5s); transform-box: fill-box; transform-origin: center; }

/* Cloudflare: verkeer gaat de wolk in; een deel komt direct terug uit de cache, een deel gaat door naar de server. */
.m-cloud__shape { fill: #0a0e16; stroke: rgba(94, 240, 210, .6); stroke-width: 1.2; }
.m-cloud__label { fill: var(--mint); }
.m-cloud__in { fill: var(--text); opacity: 0; }
.m-cloud__back { fill: var(--volt); opacity: 0; }
.m-cloud__out { fill: var(--mint); opacity: 0; }
.is-playing .m-cloud__in { animation: m-cloud-in 2.8s linear infinite; animation-delay: var(--dl); }
.is-playing .m-cloud__back { animation: m-cloud-back 2.8s linear infinite; animation-delay: var(--dl); }
.is-playing .m-cloud__out { animation: m-cloud-out 5.6s linear infinite; animation-delay: var(--dl); }

/* E-mail: een envelop vliegt naar de volgende mailbox, die licht op. */
.m-mail__paper { fill: rgba(255, 255, 255, .06); stroke: var(--text-2); stroke-width: 1.2; }
.m-mail__flap { fill: none; stroke: var(--text-2); stroke-width: 1.2; stroke-linejoin: round; }
.m-mail__dot { fill: var(--mint); opacity: .35; }
.m-mail__box .m-frame { transition: stroke .3s; }
.is-playing .m-mail__env { animation: m-mail-env 2s var(--ease-io) infinite; }
.is-playing .m-mail__dot { animation: m-mail-dot 6s ease-out infinite; animation-delay: calc(var(--i) * 2s + 1.2s); }

/* Updates: balken vullen zich om de beurt, daarna een vinkje. */
.m-upd__bar { fill: var(--mint); transform-box: fill-box; transform-origin: 0 50%; }
.is-playing .m-upd__bar { animation: m-upd-bar 7.5s var(--ease-io) infinite; animation-delay: calc(var(--i) * 1.4s); }
.m-upd__row .m-dns__ok, .m-upd__row .m-dns__tick { transform-box: fill-box; transform-origin: center; }
.is-playing .m-upd__row .m-dns__ok, .is-playing .m-upd__row .m-dns__tick { animation: m-upd-ok 7.5s var(--ease) infinite; animation-delay: calc(var(--i) * 1.4s); }

/* Escalatie: melding → opgepakt → opgelost. */
.m-esc__ring { fill: #0a0e16; stroke: var(--line-2); stroke-width: 1.2; }
.m-esc__core { fill: var(--muted); }
.m-esc__node--warn .m-esc__core { fill: var(--warn); }
.m-esc__node--mid .m-esc__core { fill: var(--volt); }
.m-esc__node--ok .m-esc__core { fill: var(--ok); }
.m-esc__line { fill: none; stroke: var(--volt); stroke-width: 1.5; stroke-dasharray: 138; stroke-dashoffset: 0; }
.is-playing .m-esc__line { animation: m-esc-line 6s var(--ease-io) infinite; }
.is-playing .m-esc__ring { animation: m-esc-ring 6s var(--ease) infinite; animation-delay: calc(var(--i) * 1.2s); }

/* Website design: blokken verschijnen een voor een. */
.m-panel__menu-dot { fill: rgba(255, 255, 255, .2); }
.m-des__b { fill: rgba(255, 255, 255, .12); }
.m-des__b--cta { fill: var(--volt); }
.m-des__b--img { fill: rgba(94, 240, 210, .25); }
.is-playing .m-des__b { animation: m-des 7s var(--ease) infinite; animation-delay: calc(var(--i) * .35s); }

@keyframes console-scan { 0%, 4% { opacity: 0; } 8%, 16% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes console-spark { to { transform: translateX(-40px); } }
@keyframes console-fill { 0% { transform: scaleX(.05); } 45%, 90% { transform: scaleX(1); } 100% { transform: scaleX(.05); } }
@keyframes console-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes m-dns { 0%, 6% { opacity: 0; transform: scale(.4); } 14%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes m-cloud-in { 0% { transform: translateX(0); opacity: 0; } 10%, 78% { opacity: 1; } 88%, 100% { transform: translateX(74px); opacity: 0; } }
@keyframes m-cloud-back { 0% { transform: translateX(0); opacity: 0; } 10%, 70% { opacity: 1; } 90%, 100% { transform: translateX(-70px); opacity: 0; } }
@keyframes m-cloud-out { 0%, 50% { transform: translateX(0); opacity: 0; } 55%, 85% { opacity: 1; } 95%, 100% { transform: translateX(40px); opacity: 0; } }
@keyframes m-mail-env { 0% { transform: translateX(0); opacity: 0; } 15%, 60% { opacity: 1; } 80%, 100% { transform: translateX(70px); opacity: 0; } }
@keyframes m-mail-dot { 0% { opacity: 1; } 30%, 100% { opacity: .35; } }
@keyframes m-upd-bar { 0% { transform: scaleX(0); } 22%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes m-upd-ok { 0%, 20% { opacity: 0; transform: scale(.4); } 28%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes m-esc-line { 0%, 5% { stroke-dashoffset: 138; } 60%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 138; } }
@keyframes m-esc-ring { 0%, 8% { stroke: var(--line-2); } 14%, 88% { stroke: var(--volt); } 100% { stroke: var(--line-2); } }
@keyframes m-des { 0%, 4% { opacity: 0; } 12%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
